Re: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : error in running command

2014-08-23 Thread Marius Hofert
On Fri, Aug 22, 2014 at 6:57 PM, William Dunlap wrote: > There is no /usr/sbin/sysctl on my Ubuntu 12.04 machine. There is a > /sbin/sysctl, but it does not accept the '-n hw.ncpu' arguments. Its > /usr/bin/nproc [-all] will tell the number of available [installed] > processing units and 'cat /p

Re: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : error in running command

2014-08-22 Thread Prof Brian Ripley
But parallel::detectCores(TRUE) is a call of desparation: this ran code intended for FreeBSD. If all else fails read the help: It has methods to do so for Linux, OS X, FreeBSD, Solaris, Irix and Windows. ‘detectCores(TRUE)’ could be tried on other Unix-alike systems. On Fri, 2

Re: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : error in running command

2014-08-22 Thread Marius Hofert
Thanks, Bill. The output is: > trace(system, quote(print(command))) parallel::detectCores(TRUE) Tracing function "system" in package "base" [1] "system" > Tracing system(cmd, TRUE) on entry [1] "/usr/sbin/sysctl -n hw.ncpu 2>/dev/null" Error in system(cmd, TRUE) : error in running command > On

Re: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : error in running command

2014-08-22 Thread Mauricio Zambrano-Bigiarini
On 22/08/14 16:03, Marius Hofert wrote: Hi, Both under the current R-devel (r66456) and a version from about 3 months ago, I experience the following behavior: parallel::detectCores(TRUE) Error in system(cmd, TRUE) : error in running command traceback() 3: system(cmd, TRUE) 2: gsub("^ +",

Re: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : error in running command

2014-08-22 Thread William Dunlap
There is no /usr/sbin/sysctl on my Ubuntu 12.04 machine. There is a /sbin/sysctl, but it does not accept the '-n hw.ncpu' arguments. Its /usr/bin/nproc [-all] will tell the number of available [installed] processing units and 'cat /proc/cpuinfo | grep processor | wc -l' will also give the number

Re: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : error in running command

2014-08-22 Thread David Winsemius
st 22, 2014 10:03:13 PM >>> Subject: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) >>> : error in running command >>> >>> Hi, >>> >>> Both under the current R-devel (r66456) and a version from about 3 >>> months ago, I

Re: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : error in running command

2014-08-22 Thread William Dunlap
The same is true in R-2.14.1 on Ubuntu 12.04.4 LTS . Put a trace on system with trace(system, quote(print(command))) parallel::detectCores(TRUE) and you will see the offending shell command. Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Aug 22, 2014 at 1:03 PM, Marius Hofert wrote:

Re: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : error in running command

2014-08-22 Thread Rui Barradas
Hello, Inline. Em 22-08-2014 22:18, Tobias Verbeke escreveu: - Original Message - From: "Marius Hofert" To: "R-devel" Sent: Friday, August 22, 2014 10:03:13 PM Subject: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : error in running comm

Re: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : error in running command

2014-08-22 Thread Tobias Verbeke
- Original Message - > From: "Marius Hofert" > To: "R-devel" > Sent: Friday, August 22, 2014 10:03:13 PM > Subject: [Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : > error in running command > > Hi, > > Both under

[Rd] parallel::detectCores(TRUE) gives: Error in system(cmd, TRUE) : error in running command

2014-08-22 Thread Marius Hofert
Hi, Both under the current R-devel (r66456) and a version from about 3 months ago, I experience the following behavior: > parallel::detectCores(TRUE) Error in system(cmd, TRUE) : error in running command > traceback() 3: system(cmd, TRUE) 2: gsub("^ +", "", system(cmd, TRUE)[1]) 1: parallel::dete