This function unpacks a package tarball using unpack_tarball() and
returns information about whether the unpacked directory exists. It is a
lightweight preparatory step used before attempting a local package
installation.
Value
A named list with the following elements:
package_installed— Logical.TRUEif the unpacked package directory exists, otherwiseFALSE.pkg_source_path— Character string giving the unpacked package source directory, or""if unpacking failed.
The returned object is always a base R list. It contains no side
effects besides calling unpack_tarball() and checking filesystem paths.
Output Meaning
A value of package_installed = TRUE indicates that the unpacked
directory exists on disk and can be used for local installation.
package_installed = FALSE indicates either:
unpack_tarball()returned an empty result, orthe unpacked directory does not exist on disk.