Skip to content
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.

vagrant site-library permissions and r::package timeouts #5

Open
alexwoolford opened this issue May 29, 2015 · 2 comments
Open

vagrant site-library permissions and r::package timeouts #5

alexwoolford opened this issue May 29, 2015 · 2 comments

Comments

@alexwoolford
Copy link

I'm using puppet-r with Vagrant. It was necessary to make a couple of tweaks to get things working:

Firstly, in Ubuntu 14.04, the /usr/local/lib/R/site-library has permissions:

drwxrwsr-x  root staff

Vagrant creates the user vagrant which doesn't belong to the staff group and therefore can't write to the site-library folder. I added the user vagrant to the staff group:

user { 'vagrant':
  groups => ["vagrant", "staff"]
}

Secondly, one of my favorite packages, dplyr, takes a while to build in a gutless VM. This causes timeouts. I extended the timeout period in package.pp by adding the following line to the exec command:

timeout => 600,

I thought I'd share in case someone else encounters the same issues.

@alexwoolford alexwoolford changed the title r::package doesn't install packages on latest R version when added from CRAN vagrant site-library permissions and r::package timeouts May 30, 2015
@SFerrazLeite
Copy link
Contributor

I did experience the same issue with the timeouts. I forked the project and fixed it by allowing to define the timeout in the r::package class. I also created a pull-request - hoping that the fix will eventually be merged.

@Data-drone
Copy link

I tried using r::package{ 'dplyr': dependencies => true, timeout => 600, } but I get invalid parameter timeout? why is this the case?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants