R: Add a package dependency to a DESCRIPTION file

desc_set_dep {desc} | R Documentation

## Add a package dependency to a DESCRIPTION file

### Description

Add a package dependency to a DESCRIPTION file

### Usage

    desc_set_dep(package, type = desc::dep_types, version = "*", file = ".",
      normalize = FALSE)

### Arguments

`package` | Package to depend on.
`type` | Dependency type.
`version` | Version to depend on, for versioned dependencies.
`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 the write when writing back the result. See `desc_normalize`.

### See Also

Other dependencies: `desc_del_deps`, `desc_del_dep`, `desc_get_deps`, `desc_has_dep`, `desc_set_deps`

[Package desc version 1.1.0 Index]