add_dependencies_to_description: Searches for external packages and adds them to the Imports...

View source: R/core_manage_dependencies.R

add_dependencies_to_descriptionR Documentation

Searches for external packages and adds them to the Imports field in the description

Description

Scans script files (.R, .Rmd, .Rnw, .Rpres) for external package dependencies indicated by library(), require() or :: and adds those packages to the Imports field in the package DESCRIPTION.

Usage

add_dependencies_to_description(
  path = getwd(),
  description_file = "DESCRIPTION",
  just_packages = FALSE
)

Arguments

path

location of individual file or directory where to search for scripts.

description_file

location of description file to be updated.

just_packages

just give back a character vector of the found packages.


benmarwick/rrtools documentation built on March 18, 2024, 2:22 a.m.