resolve_pkg_path {rdocdump} | R Documentation |
Resolve the path to a package directory or tarball
Description
This function resolves the path to a package directory or tarball, handling both installed packages and source packages from CRAN.
Usage
resolve_pkg_path(
pkg,
cache_path = NULL,
force_fetch = FALSE,
repos = getOption("rdocdump.repos", getOption("repos"))
)
Arguments
pkg |
A
|
cache_path |
A |
force_fetch |
|
repos |
A |
Value
A list containing:
-
pkg_path
: Path to the package directory or tarball. -
extracted_path
: Path to the extracted package directory (if applicable). -
tar_path
: Path to the tarball if it was downloaded. -
is_installed
: Logical indicating if the package is installed.