desc_del_dep: Remove a package dependency from DESCRIPTION

desc_del_depR Documentation

Remove a package dependency from DESCRIPTION

Description

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

Other dependencies: desc_del_deps(), desc_get_deps(), desc_has_dep(), desc_set_deps(), desc_set_dep()


desc documentation built on May 29, 2024, 8:54 a.m.