Learn R Programming

⚠️There's a newer version (0.0.3) of this package.Take me there.

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 with:

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

Copy Link

Version

Install

install.packages('requiRements')

Monthly Downloads

224

Version

0.0.0.9000

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Hadley Wickham

Last Published

February 24th, 2023

Functions in requiRements (0.0.0.9000)

requirements-package

requirements: Find Packages Required for Code to Run
req_code

Extract requirements from code
req_file

Extract requirements from a file
req_dir

Extract requirements from a directory