pkg_paste: Paste copied packages to another environment

Description Usage Arguments

View source: R/pkg_paste.R


pkg_paste() retrieve copied R package information through the download code generated by pkg_copy(). It then compares it with the package information in the current environment. If it detects any new packages, it will attempt to install them and report any packages that cannot be installed. pkg_paste_names() does not attempt to install packages, in case people want to revise the list before installation.

This function should be run in the new/target environment.


pkg_paste(code, lib.loc = NULL, ...)

pkg_paste_names(code, lib.loc = NULL)



Download code returned by pkg_backup().


Library Location. It's an argument passed to installed.packages().


Arguments passed to install.packages()

pkgcopier documentation built on May 19, 2017, 10:24 a.m.

Search within the pkgcopier package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.