pkg_paste: Paste copied packages to another environment

Description Usage Arguments

View source: R/pkg_paste.R

Description

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.

Usage

1
2
3
pkg_paste(code, lib.loc = NULL, ...)

pkg_paste_names(code, lib.loc = NULL)

Arguments

code

Download code returned by pkg_backup().

lib.loc

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

...

Arguments passed to install.packages()


pkgcopier documentation built on May 1, 2019, 9:45 p.m.