R: Check for a dependency

desc_has_dep {desc} | R Documentation

## Check for a dependency

### Description

Check for a dependency

### Usage

    desc_has_dep(package, type = c("any", desc::dep_types), file = ".")

### Arguments

`package` | The package name.
`type` | A dependency type or ‘any’.
`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.

### Value

A logical scalar.

### See Also

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

[Package desc version 1.1.0 Index]