Wrapper around usethis::use_package() with different defaults and optional DESCRIPTION file tidying.
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). Matching is case insensitive.
- min_version
Optionally, supply a minimum version for the package. Set to
TRUEto use the currently installed version or use a version string suitable fornumeric_version(), such as "2.5.0".- tidy
Whether or not to run
usethis::use_tidy_description()after addingpackageto dependencies.
See also
Other R package functions:
is_pkg_cran(),
is_pkg_dir(),
is_pkg_installed(),
is_pkgdown_dir(),
ls_pkg()
