functionMap (version 1.0.0)

extract_if_needed: Extract a package tarball

Description

The package is extracted in a temporary directory.

Usage

extract_if_needed(path)

Arguments

path
Path to a package tarball, or a package directory.

Value

Path to the temporary directory (or the supplied `path` if it was already a directory.

Details

If `path` is a directory, then we do nothing.