Skip to content

makePSOCKcluster launches different version of R

2 messages · Guido Kraemer, Martin Morgan

#
Hi everyone,

we are running R on a Linux Cluster with several R versions installed in 
parallel.

If I run:

library(parallel)
cl <- makePSOCKcluster(
   rep('nodeX', 24),
   homogeneous = FALSE,
   rscript = '/usr/local/apps/R/R-3.2.2/bin/Rscript'
)

then still R-3.0.0 gets launched on nodeX. Version 3.0.0 is the default 
R version, which is started when I just type R in the terminal without 
any further configuration.

Cheers,
Guido
#
On 08/05/2016 12:07 PM, Guido Kraemer wrote:
from ?makePSOCKcluster

      'homogeneous' Logical.  Are all the hosts running identical
           setups, so 'Rscript' can be launched using the same path on
           each?  Otherwise 'Rscript' has to be in the default path on
           the workers.

      'rscript' The path to 'Rscript' on the workers, used if
           'homogeneous' is true. Defaults to the full path on the
           master.

so homogeneous = FALSE and rscript = ... are incompatible. From your 
description it seems like you mean homogeneous = TRUE.

Martin
This email message may contain legally privileged and/or...{{dropped:2}}