get_package_deps: Get R Package Dependencies

Description Usage Arguments Value

View source: R/get_package_deps.R

Description

This function takes a path to a directory and parses the code from all .R and .Rmd files, retrieving any detected package dependencies, and optionally outputs a deps.yaml and deps.R file.

Usage

1
2
3
4
5
6
get_package_deps(
  path = getwd(),
  write_yaml = TRUE,
  write_r = TRUE,
  include_versions = TRUE
)

Arguments

path

path to directory

write_yaml

logical - should deps.yaml be created?

write_r

logical - should deps.R be created?

include_versions

logical - should package versions and github referenced be included?

Value

silently returns a data.frame with R package details


jimbrig/jimstemplates documentation built on Dec. 21, 2021, 12:05 a.m.