Description Usage Arguments Details Value See Also Examples
Builds PKGZIP out of passed external packages.
1 2 3 |
pkgs |
vector of names of external packages which should be included in PKGZIP. (type: character) |
prj |
project object to use. If not passed will init project from working directory. (type: rsuite_project, default: NULL) |
pkg_type |
type of packages to build (type: character, default: platform default) |
path |
folder path to put output zip into. The folder must exist. (type: character(1), default: getwd()) |
with_deps |
If TRUE will include dependencies pkgs dependencies into final zip. (type: logical, default: FALSE) |
filter_repo |
repository address to not include dependencies available in. If NULL will not filter dependencies. Will be omitted if with_deps is FALSE. (type: character(1), default: NULL) |
It uses the project to detect repositories to look for packages in.
Logs all messages onto rsuite logger. Use logging::setLevel
to control logs
verbosity.
created pkgzip file path (invisible).
Other in PKGZIP building: pkgzip_build_bioc_package
,
pkgzip_build_github_package
,
pkgzip_build_package_files
,
pkgzip_build_prj_packages
1 2 3 4 5 6 7 8 9 10 11 12 | # create exemplary project base folder
prj_base <- tempfile("example_")
dir.create(prj_base, recursive = TRUE, showWarnings = FALSE)
# start project
prj <- prj_start("my_project", skip_rc = TRUE, path = prj_base)
# build PKGZIP with logging package
pkgzip_fpath <- pkgzip_build_ext_packages("logging", prj = prj, path = tempdir())
# list content of pkgzip created
unzip(pkgzip_fpath, list = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.