Re: [R] Snow/Snowfall hangs on windows 7

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Mon, 16 May 2011 13:59:42 +0200

Folks,

I guess I know what is going on (and why I haven't seen this so far): All of you have installed R in a directory with blanks in it, right?

Please source() the attached sock.R and afterwards try again. Does it work with SOCK clusters now? Then it was just the lack of quotes.

CCing Luke the diffs (against snow 0.3-3 on CRAN):

@@ -29,8 +29,8 @@

              env <- paste("MASTER=", master,

" PORT=", port,
" OUT=", outfile,
- " SNOWLIB=", snowlib, sep="") - cmd <- paste(rscript, script, env) + " SNOWLIB=", shQuote(snowlib), sep="") + cmd <- paste(shQuote(rscript), shQuote(script), env) } else { script <- "RunSnowWorker RSOCKnode.R" @@ -43,13 +43,13 @@ else { if (homogeneous) { scriptdir <- getClusterOption("scriptdir", options) - script <- file.path(scriptdir, "RSOCKnode.sh") + script <- shQuote(file.path(scriptdir, "RSOCKnode.sh")) rlibs <- paste(getClusterOption("rlibs", options), collapse = ":") rprog <- getClusterOption("rprog", options) env <- paste("MASTER=", master,
" PORT=", port,
" OUT=", outfile,
- " RPROG=", rprog, + " RPROG=", shQuote(rprog),
" R_LIBS=", rlibs, sep="")
} else {

(same problem in mpi.R, nws.R etc. as well, I think)

Best wishes,
Uwe

On 16.05.2011 00:01, David Anisman wrote:

> Same problem as Anna here.
>
> Windows 7 64-bit. Running R 2.13.0. snow + snowfall installed.
>
> Testing:
>
> library(snow)
> library(snowfall)
>
> sfInit(parallel=TRUE, cpus=2, type="SOCK")
>
> Then R spins forever (yes, I disabled the Windows firewall).
>
> On the same box, tried the same on Ubuntu under Virtualbox. No problem. Runs
> well.
>
> Any suggestions/ideas appreciated.
>
>
> David
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Snow-Snowfall-hangs-on-windows-7-tp3436724p3524990.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Received on Mon 16 May 2011 - 12:05:05 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 16 May 2011 - 15:50:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive