[Rd] Surprising behavior of letters[c(NA, NA)]

2010-12-17 Thread Gabor Grothendieck
Consider this: letters[c(2, 3)] [1] b c letters[c(2, NA)] [1] b NA letters[c(NA, 3)] [1] NA c letters[c(NA, NA)] [1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [26] NA The result is a 2-vector in each case until we get to c(NA, NA) and then it unexpectedly

Re: [Rd] Surprising behavior of letters[c(NA, NA)]

2010-12-17 Thread Duncan Murdoch
On 17/12/2010 9:32 AM, Gabor Grothendieck wrote: Consider this: letters[c(2, 3)] [1] b c letters[c(2, NA)] [1] b NA letters[c(NA, 3)] [1] NA c letters[c(NA, NA)] [1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [26] NA The result is a 2-vector in each

Re: [Rd] Surprising behavior of letters[c(NA, NA)]

2010-12-17 Thread Gabor Grothendieck
On Fri, Dec 17, 2010 at 9:58 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 17/12/2010 9:32 AM, Gabor Grothendieck wrote: Consider this:  letters[c(2, 3)] [1] b c  letters[c(2, NA)] [1] b NA  letters[c(NA, 3)] [1] NA  c  letters[c(NA, NA)]  [1] NA NA NA NA NA NA NA NA NA NA

Re: [Rd] Surprising behavior of letters[c(NA, NA)]

2010-12-17 Thread Ted Harding
On 17-Dec-10 14:32:18, Gabor Grothendieck wrote: Consider this: letters[c(2, 3)] [1] b c letters[c(2, NA)] [1] b NA letters[c(NA, 3)] [1] NA c letters[c(NA, NA)] [1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [26] NA The result is a 2-vector in

Re: [Rd] Surprising behavior of letters[c(NA, NA)]

2010-12-17 Thread Duncan Murdoch
On 17/12/2010 10:40 AM, (Ted Harding) wrote: On 17-Dec-10 14:32:18, Gabor Grothendieck wrote: Consider this: letters[c(2, 3)] [1] b c letters[c(2, NA)] [1] b NA letters[c(NA, 3)] [1] NA c letters[c(NA, NA)] [1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA

Re: [Rd] GUI's and R background processes

2010-12-17 Thread Norm Matloff
(Sorry, originally sent to wrong list.) Anne, you can accomplish your goal by using my Rdsm package, which adds a threads-like capability to R. You can download it from CRAN. Look in particular in the examples/ directory. The file WebProbe.R is pretty much exactly the same usage that you

Re: [Rd] diagnosing a CMD check failure

2010-12-17 Thread Duncan Murdoch
On 17/12/2010 2:12 PM, Vincent Carey wrote: I have created a quite minimal package with a simple R program in the tests subfolder. When I run CMD check, I get * checking examples ... OK * checking for unstated dependencies in tests ... OK * checking tests ...sh: : No such file or directory

Re: [Rd] diagnosing a CMD check failure

2010-12-17 Thread Vincent Carey
That got me a little further. system2() seems not to like my system. system(date) Fri Dec 17 15:35:21 EST 2010 system2(date) sh: : No such file or directory This is with 2.13 r53555. On Fri, Dec 17, 2010 at 3:01 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 17/12/2010 2:12 PM,

Re: [Rd] diagnosing a CMD check failure

2010-12-17 Thread Dan Tenenbaum
On Fri, Dec 17, 2010 at 12:38 PM, Vincent Carey st...@channing.harvard.eduwrote: That got me a little further. system2() seems not to like my system. system(date) Fri Dec 17 15:35:21 EST 2010 system2(date) sh: : No such file or directory This is with 2.13 r53555. Hi Vince, There are