rpackager
is an R package and dependency management tool similar to the Bundler package management used in Ruby.
There are two files created and used by rpackager
-- Packages
, which is user editable, and Packages.lock
, which should generally not be edited manually.
The Packages
file specifies the packages, versions, and sources needed by your project. It can be generated manually, or through calling GeneratePackageFile(path=".")
, which will generate a Packages
file by searching recursively through the path specified and identifying calls to require
or library
.
A Packages
file should look like (see also Packages.example):
# Place your R package requirements in this file. # For specification options, see ?PackageFile. source: http://cran.r-project.org pkg 'yaml' pkg 'RCurl', source => "http://omegahat.org/R" pkg 'rjson' pkg 'XML' pkg 'campfireR', git => "git@github.com:noahhl/campfireR.git" pkg 'Rook' pkg 'fortunes', = 1.0.2
The general syntax for each line specifying a package is:
pkg 'name-of-package', 'optional-version-specification', 'source-other-than-default-repository'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.