You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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
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.
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:Vagrant creates the user
vagrant
which doesn't belong to thestaff
group and therefore can't write to thesite-library
folder. I added the uservagrant
to thestaff
group:Secondly, one of my favorite packages,
dplyr
, takes a while to build in a gutless VM. This causes timeouts. I extended the timeout period inpackage.pp
by adding the following line to the exec command:I thought I'd share in case someone else encounters the same issues.
The text was updated successfully, but these errors were encountered: