Skip to content

Remove a package dependency from DESCRIPTION

Usage

desc_del_dep(
  package,
  type = c("all", desc::dep_types),
  file = ".",
  normalize = FALSE
)

Arguments

package

Package dependency to remove.

type

Dependency type to remove. Sometimes a package is depended on via multiple dependency types, e.g. LinkingTo and Imports. Defaults to all types.

file

DESCRIPTION file to use. By default the DESCRIPTION file of the current package (i.e. the package the working directory is part of) is used.

normalize

Whether to "normalize" (reorder and reformat) the fields when writing back the result. See desc_normalize().

See also