| set_up_pkg | R Documentation |
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.
set_up_pkg(dp)
dp |
Character string. Path to a package tarball or package directory. |
A named list with the following elements:
package_installed — Logical. TRUE if the unpacked
package directory exists, otherwise FALSE.
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.
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, or
the unpacked directory does not exist on disk.
## Not run:
set_up_pkg(path/to/package, "mypackage")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.