Skip to contents

Untars the archive once to a temporary directory, reads DESCRIPTION, derives NeedsCompilation from the presence of a src/ directory, computes MD5sum of the tarball, and standardizes License using tools:::analyze_licenses(). Optionally checks that the filename matches "Package_Version.tar.gz".

Usage

pkg_index_from_tar(archive, validate = TRUE)

Arguments

archive

Path to a source package tarball (.tar.gz, .tar.xz, ...).

validate

If TRUE, verify filename matches DESCRIPTION fields.

Value

A one-row pkg_index.

Examples

if (FALSE) { # \dontrun{
row <- pkg_index_from_tar("mypkg_1.2.3.tar.gz")
} # }