forward3d / puppet-r Goto Github PK
View Code? Open in Web Editor NEWPuppet module for R and R packages
Home Page: http://forward3d.com
Puppet module for R and R packages
Home Page: http://forward3d.com
I'd like to use this module but there are no releases so puppet-librarian run in Boxen can't download it. Could you please create an initial release?
I'm trying to install a local package:
r::package { '${ore_package_dir}/ORE_1.4.1_R_x86_64-unknown-linux-gnu.tar.gz': repo => null }
as the script expects repo to be a string this doesn't seem possible.
At every package run, I'm seeing my packages get reinstalled:
Info: Applying configuration version '1401905339'
Notice: /Stage[main]/Main/Node[rshiny2.mydomain.com]/R::Package[rCharts]/Exec[install_r_package_rCharts]/returns: executed successfully
Notice: /Stage[main]/Main/Node[rshiny2.mydomain.com]/R::Package[shiny]/Exec[install_r_package_shiny]/returns: executed successfully
Notice: /Stage[main]/Main/Node[rshiny2.mydomain.com]/R::Package[ggplot2]/Exec[install_r_package_ggplot2]/returns: executed successfully
Notice: /Stage[main]/Main/Node[rshiny2.mydomain.com]/R::Package[ROCR]/Exec[install_r_package_ROCR]/returns: executed successfully
Notice: /Stage[main]/Main/Node[rshiny2.mydomain.com]/R::Package[mapproj]/Exec[install_r_package_mapproj]/returns: executed successfully
Notice: /Stage[main]/Main/Node[rshiny2.mydomain.com]/R::Package[leaflet]/Exec[install_r_package_leaflet]/returns: executed successfully
Notice: Finished catalog run in 21.41 seconds
I am on CentOS. Whern I put the following in my Puppet file:
class { 'r': }
r::package { 'ggplot2': }
r::package { 'gcookbook': }
I get the following error:
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install r-base' returned 1: Error: Nothing to do
Error: /Stage[main]/R/Package[r-base]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install r-base' returned 1: Error: Nothing to do
It seems to be indicating that R is already installed. However, it's supposed to be
a Puppet module, so it should be cool with that if true.
Can you help?
Ross
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.