[R-sig-hpc] sfClusterMap

Brian G. Peterson brian at braverock.com
Thu Nov 19 17:06:51 CET 2009


Use the source Dan!

 > sfClusterMap
function (fun, ..., MoreArgs = NULL, RECYCLE = TRUE)
stop("Currently no wrapper for clusterMap")
<environment: namespace:snowfall>


Daniel McGlinn wrote:
> Dear list,
>
> I am attempting to use the function "sfClusterMap" in the snowfall package
> which attempts to mimic the mapply function but in parallel. Unfortunately I
> am recieving the following error:
> Error in sfClusterMap(some.func, x.vals, y.vals) :
>   Currently no wrapper for clusterMap
>
> Can anyone tell me if this function is simply defunct or if I am making a
> mistake in my code?
>
> Thanks for your help in advance!
> Sincerely,
> Dan McGlinn
>
> #####################
> library(snowfall)
>
> some.func<-function(x,y) sum(x,y)
> x.vals<-1:10
> y.vals<-1:10
> mapply(some.func,x.vals,y.vals)
>
> ##attempt with sfClusterMap
> sfInit(parallel=TRUE, cpus=2, type="SOCK")
> sfExport(list=c("some.func","x.vals","y.vals"))
> out.file<-sfClusterMap(some.func,x.vals,y.vals)
>
> ##returns the following error message:
> Error in sfClusterMap(some.func, x.vals, y.vals) :
>   Currently no wrapper for clusterMap
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-hpc mailing list
> R-sig-hpc at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
>   


-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



More information about the R-sig-hpc mailing list