Depend on another packageSource:
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 package, adding the dev repo to
it will be automatically installed from the correct location.
use_package(package, type = "Imports", min_version = NULL) use_dev_package(package, type = "Imports", remote = NULL)
Name of package to depend on.
Type of dependency: must be one of "Imports", "Depends", "Suggests", "Enhances", or "LinkingTo" (or unique abbreviation). Matching is case insensitive.
Optionally, supply a minimum version for the package. Set to
TRUEto use the currently installed version.
By default, an
OWNER/REPOGitHub remote is inserted. Optionally, you can supply a character string to specify the remote, e.g.
"gitlab::jimhester/covr", using any syntax supported by the remotes package.