Re: [Rd] Baffled with as.matrix

2012-11-30 Thread Brian Diggs
On 11/30/2012 4:53 AM, Terry Therneau wrote: I'm puzzled by as.matrix. It appears to work differently for Surv objects. Here is a session from my computer: tmt% R --vanilla > library(survival) Loading required package: splines > ytest <- Surv(1:3, c(1,0,1)) > is.matrix(ytest) >[1] TRUE It

[Rd] Baffled with as.matrix

2012-11-30 Thread Terry Therneau
I'm puzzled by as.matrix. It appears to work differently for Surv objects. Here is a session from my computer: tmt% R --vanilla > library(survival) Loading required package: splines > ytest <- Surv(1:3, c(1,0,1)) > is.matrix(ytest) >[1] TRUE > attr(ytest, 'type') [1] "right" > attr(as.matrix(yt

Re: [Rd] Non-recursive way to remove empty directory on Windows?

2012-11-30 Thread Martin Maechler
> Martin Maechler > on Fri, 30 Nov 2012 11:47:07 +0100 writes: > William Dunlap > on Thu, 29 Nov 2012 02:36:54 + writes: >>> (even worse, path may contain '..' or >>> likewise from a list.files(all.names=TRUE) call) >> Would anyone's code break if "." an

Re: [Rd] Non-recursive way to remove empty directory on Windows?

2012-11-30 Thread Martin Maechler
> William Dunlap > on Thu, 29 Nov 2012 02:36:54 + writes: >> (even worse, path may contain '..' or >> likewise from a list.files(all.names=TRUE) call) > Would anyone's code break if "." and ".." were never in the output of > list.files() (or dir())? I find it ted

Re: [Rd] compiling R for Windows 64 bit

2012-11-30 Thread Prof Brian Ripley
1) It seems you forgot to clean up before making a 64-bit build: skipping incompatible ./libR.dll.a when searching for -lR I expect that is a 32-bit version you made earlier (but you did not show us the line which made it). 2) You did not read the manual carefully enough: config.site is us

Re: [Rd] compiling R for Windows 64 bit

2012-11-30 Thread Vitaliy FEOKTISTOV
(rem: this message describes compiling errors more precisely) Dear All, I'm trying to compile R for Windows 64 bit. I'm following the instructions of R installation and administration guide v2.15.2 (3.1; A.3.1.4; C.2.2) and at the moment I compiled the default version (single threaded, gc

[Rd] compiling R for Windows 64 bit

2012-11-30 Thread Vitaliy FEOKTISTOV
Dear All, I'm trying to compile R for Windows 64 bit. I'm following the instructions of R installation and administration guide v2.15.2 (3.1; A.3.1.4; C.2.2) and at the moment I compiled the default version (single threaded, gcc, without external BLAS)  on my notebook (windows xp 32 bit) Now I'm