Skip to content
Prev 48872 / 63424 Next

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

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 of installed processing units.
Bill Dunlap
TIBCO Software
wdunlap tibco.com


On Fri, Aug 22, 2014 at 3:17 PM, Marius Hofert
<marius.hofert at uwaterloo.ca> wrote: