Skip to content

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

6 messages · Marius Hofert, Tobias Verbeke, Rui Barradas +3 more

#
Hi,

Both under the current R-devel (r66456) and a version from about 3
months ago, I experience the following behavior:
Error in system(cmd, TRUE) : error in running command
3: system(cmd, TRUE)
2: gsub("^ +", "", system(cmd, TRUE)[1])
1: parallel::detectCores(TRUE)
This is on Ubuntu 14.04. Does anybody else see this? [I currently have
quite a heavy workload, otherwise I would have installed and tested it
also under 3.1.1]

Cheers,

Marius
#
----- Original Message -----
Same under R 3.1.1
Error in system(cmd, TRUE) : error in running command

Best,
Tobias
#
Hello,

Inline.

Em 22-08-2014 22:18, Tobias Verbeke escreveu:
I'm Using R 3.1.1 on Windows 7 and it works.

 > parallel::detectCores(TRUE)
[1] 4
 > sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=Portuguese_Portugal.1252 
LC_CTYPE=Portuguese_Portugal.1252
[3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C 

[5] LC_TIME=Portuguese_Portugal.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] parallel_3.1.1

Rui Barradas
#
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
<marius.hofert at uwaterloo.ca> wrote:
#
On 22/08/14 16:03, Marius Hofert wrote:
I also get the same error:

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


R 3.1.1 on Linux Mint 17 (based on Ubuntu 14.04)

sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
  [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8
  [5] LC_MONETARY=en_GB.UTF-8    LC_MESSAGES=en_GB.UTF-8
  [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods
[8] base

other attached packages:
[1] raster_2.2-31 sp_1.0-15

loaded via a namespace (and not attached):
[1] grid_3.1.1      lattice_0.20-29 tools_3.1.1

Cheers,

Mauricio
#
On Aug 22, 2014, at 2:53 PM, Rui Barradas wrote:

            
Works on a 6 year-old MacPro with R 3.1.0
[1] 8
R version 3.1.0 Patched (2014-04-21 r65431)
Platform: x86_64-apple-darwin10.8.0 (64-bit)