Re: [Rd] parallel::mc*: Is it possible for a child process to know it is a fork?

2017-01-25 Thread Henrik Bengtsson
On Tue, Jan 24, 2017 at 8:10 PM, Jeroen Ooms wrote: > On Tue, Jan 24, 2017 at 7:06 PM, Henrik Bengtsson > wrote: >> When using multicore-forking of the parallel package, is it possible >> for a child process to know that it is a fork? > > R internally uses R_isForkedChild to prevent certain opera

[Rd] help(clusterApply) (parallel package)

2017-01-25 Thread Viechtbauer Wolfgang (SP)
Hello, In help(clusterApply) of the 'parallel' package, it says: "clusterApply calls fun on the first node with arguments seq[[1]] and ..., on the second node with seq[[2]] and ..., and so on, recycling nodes as needed." But the argument that is iterated over in clusterApply() is called 'x' not

[Rd] Undefined behavior of head() and tail() with n = 0

2017-01-25 Thread Florent Angly
Hi all, The documentation for head() and tail() describes the behavior of these generic functions when n is strictly positive (n > 0) and strictly negative (n < 0). How these functions work when given a zero value is not defined. Both GNU command-line utilities head and tail behave differently wi

Re: [Rd] Upgrading a package to which other packages are LinkingTo

2017-01-25 Thread Gábor Csárdi
FWIW I wrote a tool that tests which dependencies of a package are build-time dependencies: https://github.com/r-hub/builddeps It is not very smart, just "brute-force", really. It tries to install the package several times, leaving out one dependency at a time, and if the installation fails, then