use_package

0th

Percentile

Use specified package.

use_package() adds a CRAN package dependency to DESCRIPTION and offers a little advice about how to best use it. use_dev_package() adds a dependency on an in-development GitHub package, adding the repo to Remotes so it will be automatically installed from the correct location.

Usage
use_package(package, type = "Imports")

use_dev_package(package, type = "Imports")

Arguments
package

Name of package to depend on.

type

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

Aliases
  • use_package
  • use_dev_package
Examples
# NOT RUN {
use_package("ggplot2")
use_package("dplyr", "suggests")
# }
Documentation reproduced from package usethis, version 1.2.0, License: GPL-3

Community examples

Looks like there are no examples yet.