All Projects → hadley → Requirements

hadley / Requirements

Find packages required for code to run

Programming Languages

r
7636 projects

requirements

Travis build status Coverage status CRAN status

requirements allows you to impute required packages from R code, files (like .R, .Rmd and .Rnw) and directories. It primarily looks for use of functions like library() and ::, but also uses heuristics to detect common implicit dependencies (e.g. methods, shiny, and roxygen2).

The inspiration for this code comes from packrat. We're extracting it out in to a separate package so that it can be more easily extended and used by others.

Installation

requirements is not currently available on CRAN, but you can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("hadley/requirements")
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].