Re: [Rd] Wait for user input with readline()

2012-10-19 Thread torekp
jcharlto, Thank you thank you thank you, you just saved me about 7.9 hours! -- View this message in context: http://r.789695.n4.nabble.com/Wait-for-user-input-with-readline-tp3054517p4646826.html Sent from the R devel mailing list archive at Nabble.com. ___

Re: [Rd] Change in the RNG implementation?

2012-10-19 Thread Duncan Murdoch
On 12-10-19 7:04 PM, Hervé Pagès wrote: Hi, Looks like the implementation of random number generation changed in R-devel with respect to R-2.15.1. With R-2.15.1: > set.seed(33) > sample(49821115, 10) [1] 22217252 19661919 24099911 45779422 42043111 25774933 21778053 17098516

Re: [Rd] setting option in function

2012-10-19 Thread Charles Geyer
That was easy. Thanks. That will fix a problem a lot of users are having with the aster package. If users have NA's in their data, then they almost certainly don't know what they are doing (with aster). On Fri, Oct 19, 2012 at 5:10 PM, Thomas Lumley wrote: > old_options <- options(na.action=n

Re: [Rd] setting option in function

2012-10-19 Thread William Dunlap
Hi Charley, You can use the idiom oldNaAction <- options(na.action=na.fail) on.exit(options(oldNaAction)) or the slightly safer (protected again an interrupt between the first two lines or an error calling options to set them) oldNaAction <- getOption("na.action") on.exit(options(oldNa

[Rd] Change in the RNG implementation?

2012-10-19 Thread Hervé Pagès
Hi, Looks like the implementation of random number generation changed in R-devel with respect to R-2.15.1. With R-2.15.1: > set.seed(33) > sample(49821115, 10) [1] 22217252 19661919 24099911 45779422 42043111 25774933 21778053 17098516 [9] 773073 5878451 With recent R-devel:

Re: [Rd] Mac and Windows binaries of rJava broken for R-devel?

2012-10-19 Thread Hervé Pagès
On 10/19/2012 10:02 AM, Uwe Ligges wrote: Thanks for letting me know. Currently the ./2.16 Window binary tree on CRAN is still a link to ./2.15. We will work to get binaries up within a week. Sounds good. Thanks! H. Uwe Ligges On 19.10.2012 07:52, Hervé Pagès wrote: Hi, Here is a pro

Re: [Rd] setting option in function

2012-10-19 Thread Thomas Lumley
old_options <- options(na.action=na.fail) on.exit(options(old_options)) You can also use this to define a wrapper that executes an expression using special options withOptions<-function(optlist,expr){ oldopt<-options(optlist) on.exit(options(oldopt)) expr<-substitute(expr)

Re: [Rd] Rcmd_environ and R_LIBS_{USER,SITE}

2012-10-19 Thread Dirk Eddelbuettel
Hi Uwe, On 19 October 2012 at 19:25, Uwe Ligges wrote: | Dirk, | | if you ask R to | | R CMD check foo_1.2-3.tar.gz | | | and the output is | | "no package called 'foo'" | | then something went wrong with your setup or your package. That is not what I said, or tried to say. My issue is tha

[Rd] setting option in function

2012-10-19 Thread Charles Geyer
is it possible to set an option inside a function ((I want to set na.action = na.fail) and have the previous state restored if there is an error so that the function doesn't change the option behind the user's back? Sorry if this has been answered before, but this subject is hard to Google. -- Ch

[Rd] customize building package vignettes

2012-10-19 Thread Yihui Xie
Hi, I mentioned this at useR! 2012 but I guess the relevant R core members were not there (presumably Fritz, Duncan and Brian), so I'm making this wishlist again: Currently package vignettes have to be processed through Sweave, which is too restrictive since several add-on packages aiming to impr

Re: [Rd] Rcmd_environ and R_LIBS_{USER,SITE}

2012-10-19 Thread Uwe Ligges
Dirk, if you ask R to R CMD check foo_1.2-3.tar.gz and the output is "no package called 'foo'" then something went wrong with your setup or your package. Can we have details? Best, Uwe On 19.10.2012 15:21, Dirk Eddelbuettel wrote: On 19 October 2012 at 12:39, Gavin Simpson wrote: | O

Re: [Rd] Addition of plot=F argument to termplot

2012-10-19 Thread Prof Brian Ripley
On 19/10/2012 18:15, Terry Therneau wrote: I have a suggested addition to termplot. We have a local mod that is used whenever none of the termplot options is quite right. It is used here almost daily for Cox models in order to put the y axis on a risk scale: fit <- coxph(Surv(time, status)

[Rd] Addition of plot=F argument to termplot

2012-10-19 Thread Terry Therneau
I have a suggested addition to termplot. We have a local mod that is used whenever none of the termplot options is quite right. It is used here almost daily for Cox models in order to put the y axis on a risk scale: fit <- coxph(Surv(time, status) ~ ph.ecog + pspline(age), data=lung) zz <

Re: [Rd] Mac and Windows binaries of rJava broken for R-devel?

2012-10-19 Thread Uwe Ligges
Thanks for letting me know. Currently the ./2.16 Window binary tree on CRAN is still a link to ./2.15. We will work to get binaries up within a week. Uwe Ligges On 19.10.2012 07:52, Hervé Pagès wrote: Hi, Here is a problem we see with the Mac and Windows binaries of rJava (0.9-3) current

Re: [Rd] R 64bit for Windows on Windows 2012 server running Microsoft’s Hyper-V 2012?

2012-10-19 Thread Uwe Ligges
On 19.10.2012 01:24, Matthew Schall wrote: Seeking confirmation/disconfirmation that R 64bit for Windows will run on Windows 2012 server running Microsoft’s Hyper-V 2012 server virtualization software and advice on building this on AMD 16 core or Intel 8 core processors where we want to put

Re: [Rd] R CMD check --force-biarch

2012-10-19 Thread Prof Brian Ripley
On 19/10/2012 15:00, Simon Urbanek wrote: On Oct 18, 2012, at 12:17 PM, Russell G. Almond wrote: I'm having problems getting R CMD check to work correctly on Windows 7 (64 bit) in a package that uses C code. What I want to do is to be able to pass the equivalent of the "--force-biarch" opti

Re: [Rd] R CMD check --force-biarch

2012-10-19 Thread Simon Urbanek
On Oct 18, 2012, at 12:17 PM, Russell G. Almond wrote: > I'm having problems getting R CMD check to work correctly on Windows 7 (64 > bit) in a package that uses C code. What I want to do is to be able to pass > the equivalent of the "--force-biarch" option to check, but this is only > suppor

Re: [Rd] Rcmd_environ and R_LIBS_{USER,SITE}

2012-10-19 Thread Dirk Eddelbuettel
On 19 October 2012 at 12:39, Gavin Simpson wrote: | On Thu, 2012-10-18 at 10:18 -0500, Dirk Eddelbuettel wrote: | > Kasper, | > | > On 18 October 2012 at 10:41, Kasper Daniel Hansen wrote: | > | I set my user libraries in .Rprofile for this very reason. I agree it | > | is weird that .Renviron i

Re: [Rd] Rcmd_environ and R_LIBS_{USER,SITE}

2012-10-19 Thread Gavin Simpson
On Thu, 2012-10-18 at 10:18 -0500, Dirk Eddelbuettel wrote: > Kasper, > > On 18 October 2012 at 10:41, Kasper Daniel Hansen wrote: > | I set my user libraries in .Rprofile for this very reason. I agree it > | is weird that .Renviron is not always read etc. > > Sorry, no cigar either -- this equi

Re: [Rd] simplify2array edge case

2012-10-19 Thread Martin Maechler
> William Dunlap > on Thu, 11 Oct 2012 18:59:52 + writes: > Should simplify2array(higher=TRUE) treat 1 by 1 matrices differently than others? > I expected a 3-dimensional array from all of the following 3 examples, not just the last 2. >> str(simplify2array(list(arr

[Rd] --enable-R-shlib and external BLAS/LAPACK libraries

2012-10-19 Thread Bjørn-Helge Mevik
A couple of years ago (in 2008, using R 2.7.x, I believe) I noted that using the configure switch --enable-R-shlib when buildig R made configure ignore any specified external LAPACK library and use the internal one insted. I asked why, and was told it was intentional. Now, with R 2.15.1, I see tha

[Rd] R 64bit for Windows on Windows 2012 server running Microsoft’s Hyper-V 2012?

2012-10-19 Thread Matthew Schall
Seeking confirmation/disconfirmation that R 64bit for Windows will run on Windows 2012 server running Microsoft’s Hyper-V 2012 server virtualization software and advice on building this on AMD 16 core or Intel 8 core processors where we want to put up a 64 core VM. We have not built this yet, we

[Rd] R CMD check --force-biarch

2012-10-19 Thread Russell G. Almond
I'm having problems getting R CMD check to work correctly on Windows 7 (64 bit) in a package that uses C code. What I want to do is to be able to pass the equivalent of the "--force-biarch" option to check, but this is only supported for INSTALL. Background: I'm writing a package (RNetica) whi