Test if a package is available on CRAN
Arguments
- pkg
Package name (case-sensitive). A character scalar.
- min_version
Minimum required version number of
pkg
. Must be eitherNULL
to ignore version numbers, or a singlepackage_version
or something coercible to.- retries
Maximum number of retries of the
HEAD
request in case of an HTTP error. An integer scalar>= 0
. The retries are performed using exponential backoff and jitter, seehttr::RETRY()
for details.
See also
Other R package functions:
is_pkg_dir()
,
is_pkg_installed()
,
is_pkgdown_dir()
,
ls_pkg()
,
use_pkg()