use_package

0th

Percentile

Use specified package.

This adds a dependency to DESCRIPTION and offers a little advice about how to best use it.

Usage
use_package(package, type = "Imports", pkg = ".")
Arguments
package

Name of package to depend on.

type

Type of dependency: must be one of "Imports", "Depends", "Suggests", "Enhances", or "LinkingTo" (or unique abbreviation)

pkg

package description, can be path or package name. See as.package for more information.

See Also

Other infrastructure: infrastructure, use_build_ignore, use_data_raw, use_data, use_news_md, use_readme_rmd

Aliases
  • use_package
Examples
# NOT RUN {
use_package("ggplot2")
use_package("dplyr", "suggests")

# }
Documentation reproduced from package devtools, version 1.13.6, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.