[R] specific package to laply

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Thu May 14 20:21:25 CEST 2015

I suggest you post using plain text to minimize communication problems on this list.

I use the clusterEvalQ and cluster export functions to setup the slave processes before I start processing.
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
Sent from my phone. Please excuse my brevity.

On May 14, 2015 11:01:50 AM PDT, Benjamin <hess.bn at gmail.com> wrote:
>I have a batch jobs problem for parallel code without sudo.  When I try
>send a package to the different nodes, as follows:
>.libPaths( c(.libPaths(),
>             "/my/first/library",
>             "/my/second/library")
>          )
>cl <- makeCluster(detectCores())
>sites <- paste0("https://www.site",1:2,".com")
>html0 <- foreach(i=sites,.packages='rvest') %dopar% html(i)
>I get the following output:
>Error in e$fun(obj, substitute(ex), parent.frame(), e$data) :
>  worker initialization failed: there is no package called ‘rvest’
>Calls: %dopar% -> <Anonymous>
>Presumably, I need a way to export my .libPaths() to the nodes.  Any
>	[[alternative HTML version deleted]]
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list