powered by
DESCRIPTION
The archive file does not have to exist. Use file.exists(get_pkg_archive_path()) to test existence.
file.exists(get_pkg_archive_path())
get_pkg_archive_path(path = ".", absolute = TRUE)
Path to the package's archive file.
Path to the package directory (see devtools::as.package).
devtools::as.package
Return the absolute path?
package_path <- file.path(tempdir(), "anRpackage") usethis::create_package(path = package_path) print(tarball <- get_pkg_archive_path(package_path)) file.exists(tarball)
Run the code above in your browser using DataLab