depl_check: Check R source dependencies.

Description Usage Arguments Details Value Examples

Description

'depl_check' analyses R source for dependency references: 'library(<package>)', 'require(<package>)', '<package>::func', 'pload(<package>, <package>)'. The dependencies are then located in either the local library, CRAN, or GitHub. Installed versions are compared with repository versions, with CRAN taking precendence over GitHub (Even if a local package was installed from GitHub).

Usage

1
depl_check(source_path = ".")

Arguments

source_path

a file or directory path.

Details

A report is output to the console containing information about missing and out of date dependencies. If there are any missing or out of date, a prompt is made to automatically update and install dependencies.

Value

A list of dataframes containing package metadata. Convenient for diagnostics or further processing.

Examples

1
2
3
4
5
## Not run: 
depl_check("~/repos/my_analysis")
depl_check("./report.Rmd")

## End(Not run)

MilesMcBain/deplearning documentation built on May 23, 2019, 3:12 p.m.