An open API service indexing awesome lists of open source software.

https://github.com/hadley/requirements

Find packages required for code to run
https://github.com/hadley/requirements

Last synced: 5 months ago
JSON representation

Find packages required for code to run

Awesome Lists containing this project

README

        

# requirements

[![Travis build status](https://travis-ci.org/hadley/requirements.svg?branch=master)](https://travis-ci.org/hadley/requirements)
[![Coverage status](https://codecov.io/gh/hadley/requirements/branch/master/graph/badge.svg)](https://codecov.io/github/hadley/requirements?branch=master)
[![CRAN status](https://www.r-pkg.org/badges/version/requirements)](https://cran.r-project.org/package=requirements)

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](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("hadley/requirements")
```