[R-sig-hpc] snow, socket cluster: problem with path to rscript

luke at stat.uiowa.edu luke at stat.uiowa.edu
Mon Apr 13 19:41:25 CEST 2009

On Mon, 13 Apr 2009, Steve Weston wrote:

> Hi Matthieu,
> On Mon, Apr 13, 2009 at 4:46 AM, Matthieu Stigler
> <matthieu.stigler at gmail.com> wrote:
>> Hello
>> I'm trying to set-up a cluster having three nodes with cluster type=SOCK.
>> I have a problem to give the path to the rscript (different on the two
>> machines).... I try to give full information (fill the list(host, rscript)
>> as in the makeCluster example)
> [snip]
>> I'm really thankfull if you can give me advice and tell me wether I do
>> something wrong or not! Thanks a lot!
>> See:
>> library(snow)
>> #local host only
>> host212Full <-list(host = "dsge at", rscript =
>> "/usr/lib64/R/bin/Rscript")
>> makeCluster(c(rep(host212Full, 2)), type = "SOCK")
> I think the immediate problem is the way that you're creating
> the first argument to makeCluster.  Your code is concatenating
> host212Full to itself, creating a list of length 4 with elements
> that are not lists. I think you want to create a list of two lists,
> each of length 2.
> One way to create the appropriate list (which worked for me on
> R 2.8.1) is:
> makeCluster(rep(list(host212Full), 2), type = "SOCK")
> I hope that helps.

Thanks -- the help page gets this wrong (in an example that is not run
) -- I'll fix that for the net release.


Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:      luke at stat.uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu

More information about the R-sig-hpc mailing list