Hello All, I can run the "lower level" functions OK, but many of the higher level (eg. parSApply) functions are generating errors. When running the example (from the snow help docs) for parApply on MacOSX 10.5.5, I get the following error: cl <- makeSOCKcluster(c("localhost","localhost")) sum(parApply(cl, matrix(1:100,10), 1, sum)) Error in do.call("fun", lapply(args, enquote)) : could not find function "fun" Any ideas? Do I possibly need MPI or PVM to run the "Apply" functions? Thanks, -- Gregory Riddick, PhD. CRTA Research Fellow National Institutes of Health National Cancer Institute, Neuro-Oncology Branch 9030 Old Georgetown Road Building 37, Room 1142 Bethesda, MD 20892-8202 Phone: 301-443-2490
luke at stat.uiowa.edu
2009-Jan-04 20:06 UTC
[R] Problem with package SNOW on MacOS X 10.5.5
I don't see this on my setup (OS X 10.5.6, R 2.8.0, snow 0.3-3). As snow does not use a name space it is possible that something else you have loaded is masking a snow internal function. Another possibility might be that your worker processes are picking up different versions of R or snow. You might look at what traceback() says and/or use clusterEvalQ to query the workers for R and snow versions. luke On Wed, 31 Dec 2008, Greg Riddick wrote:> Hello All, > > I can run the "lower level" functions OK, but many of the higher level > (eg. parSApply) functions are generating errors. > > When running the example (from the snow help docs) for parApply on > MacOSX 10.5.5, I get the > following error: > > > cl <- makeSOCKcluster(c("localhost","localhost")) > sum(parApply(cl, matrix(1:100,10), 1, sum)) > > Error in do.call("fun", lapply(args, enquote)) : > could not find function "fun" > > > > Any ideas? Do I possibly need MPI or PVM to run the "Apply" functions? > > Thanks, > >-- 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