Skip to contents

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

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