Giter Club home page Giter Club logo

puppet-r's Introduction

Puppet R module

This module gives you the ability to install R, but also R packages.

Usage

To install R you need to include the class...

class { 'r': }

Then define any packages you want to be installed...

r::package { 'ggplot2': }
r::package { 'reshape': }

To define a package, and all required dependencies, use this format: r::package { 'reshape': dependencies => true, }

on RHEL/CentOS machines, make sure you have EPEL enabled, or R won't install properly.

Testing

Testing is done via rspec-puppet, install dependencies

bundle install

run tests

rspec

puppet-r's People

Contributors

andersje avatar andytinycat avatar coolblue-agarstang avatar edestecd avatar henrycook avatar lloydpick avatar sferrazleite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppet-r's Issues

Problem installing R using Puppet

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

Can't specify null as repo

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.

vagrant site-library permissions and r::package timeouts

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.

packages installed via this module continually reinstall

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

Please create a release

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.