[Rd] Exit status of Rscript

2019-02-28 Thread Michel Lang
Current R release (3.5.2) and devel return a 0 exit status on error, while prior versions returned a non-zero exit status. On Linux and MacOs, the following line returns TRUE for R-3.5.2 and R-devel, and FALSE for R-3.5.1 and R-3.5.0: system2("Rscript", c("-e", shQuote("stop('foo')"))) == 0 I did

Re: [Rd] length of `...`

2018-05-03 Thread Michel Lang
FWIW, there is also a backport of `...length()` for R versions >3.0.0 in my package backports (shameless self promotion): . 2018-05-03 19:41 GMT+02:00 peter dalgaard : > > >> On 3 May 2018, at 19:23 , Hadley Wickham wrote: >> >> Maybe just get(paste0("..", n))

[Rd] mcparallel / mccollect

2016-08-30 Thread Michel Lang
Hi there, I've tried to implement an asynchronous job scheduler using parallel::mcparallel() and parallel::mccollect(..., wait=FALSE). My goal was to send processes to the background, leaving the R session open for interactive use while all jobs store their results on the file system. To keep trac

Re: [Rd] RFC: is.whole() ? {"how to judge if a variable is an integer"}

2014-10-30 Thread Michel Lang
2014-10-28 10:32 GMT+01:00 Martin Maechler : > Given all this, the r-help and stackoverflow threads, > maybe we should decide that such an is.whole() function should > be added to R and maintained (by me for the time), so we do have > a better place to point people to, and well documented -- and >