Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
54 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
include_attribute "r" | ||
|
||
include_attribute 'r' | ||
|
||
case node['r']['install_method'] | ||
when "package" | ||
default['r']['install_dir'] = "/usr/lib/R" | ||
when "source" | ||
default['r']['install_dir'] = node['kernel']['machine'] == 'x86_64' ? "/usr/local/lib64/R" : "/usr/local/lib/R" | ||
when 'package' | ||
default['r']['install_dir'] = '/usr/lib/R' | ||
when 'source' | ||
default['r']['install_dir'] = node['kernel']['machine'] == 'x86_64' ? '/usr/local/lib64/R' : '/usr/local/lib/R' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
def r_package_installed?(package) | ||
require "rinruby" | ||
R.echo(enable=false) | ||
R.eval "packages = installed.packages()[,1]" | ||
packages = R.pull "packages" | ||
return packages.include?(package) | ||
require 'rinruby' | ||
R.echo(enable: false) | ||
R.eval 'packages = installed.packages()[,1]' | ||
packages = R.pull 'packages' | ||
packages.include?(package) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
name "r" | ||
maintainer "Steven Danna" | ||
maintainer_email "steve@opscode.com" | ||
license "Apache 2.0" | ||
description "Installs/Configures R" | ||
name 'r' | ||
maintainer 'Steven Danna' | ||
maintainer_email 'steve@opscode.com' | ||
license 'Apache 2.0' | ||
description 'Installs/Configures R' | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
version "0.3.0" | ||
version '0.3.0' | ||
|
||
depends "apt" | ||
depends "ark" | ||
depends "build-essential" | ||
depends 'apt' | ||
depends 'ark' | ||
depends 'build-essential' | ||
depends 'readline' | ||
|
||
supports "ubuntu" | ||
supports "centos" | ||
supports 'ubuntu' | ||
supports 'centos' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters