This module gives you the ability to install R, but also R packages.
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 is done via rspec-puppet, install dependencies
bundle install
run tests
rspec