[R] Snow/Snowfall hangs on windows 7

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon May 16 13:59:42 CEST 2011


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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sock.R
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110516/afe86d3c/attachment.pl>


More information about the R-help mailing list