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
- Host: GitHub
- URL: https://github.com/hadley/requirements
- Owner: hadley
- Created: 2018-06-22T19:21:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-04T23:32:17.000Z (almost 5 years ago)
- Last Synced: 2024-11-01T10:43:11.366Z (5 months ago)
- Language: R
- Homepage:
- Size: 23.4 KB
- Stars: 71
- Watchers: 2
- Forks: 3
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - hadley/requirements - Find packages required for code to run (R)
README
# requirements
[](https://travis-ci.org/hadley/requirements)
[](https://codecov.io/github/hadley/requirements?branch=master)
[](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")
```