get_pkg_archive_path {packager}R Documentation

Create a Package's Archive Path From the Package's ‘DESCRIPTION

Description

The archive file does not have to exist. Use file.exists(get_pkg_archive_path()) to test existence.

Usage

get_pkg_archive_path(path = ".", absolute = TRUE)

Arguments

path

Path to the package directory (see devtools::as.package).

absolute

Return the absolute path?

Value

Path to the package's archive file.

Examples

package_path <- file.path(tempdir(), "anRpackage")
usethis::create_package(path = package_path)
print(tarball <- get_pkg_archive_path(package_path))
file.exists(tarball)

[Package packager version 1.15.2 Index]