Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue attaching multiple libraries to each node #21

Closed
Mullefa opened this issue Jan 18, 2016 · 2 comments
Closed

Issue attaching multiple libraries to each node #21

Mullefa opened this issue Jan 18, 2016 · 2 comments

Comments

@Mullefa
Copy link

Mullefa commented Jan 18, 2016

The documentation infers you can attach multiple packages to each node with a single call to cluster_library(). However, this doesn't work, at least in my case:

get_default_cluster() %>%
  cluster_library(c("dplyr", "geosphere"))

Initialising 7 core cluster.
Error in library(packages, character.only = TRUE) : 
  'package' must be of length 1
@puterleat
Copy link

I think the whole issue of attaching packages is quite confusing at the moment... It took me a while in the docs to realise you basically have to recreate the namespace of functions within each node of the cluster... I wonder if there's a way to automate this? Could the current environment be copied to each node?

@hadley
Copy link
Member

hadley commented Jan 25, 2017

Fixed by #43

@hadley hadley closed this as completed Jan 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants