View source: R/transfer_packages.R
transfer_packages | R Documentation |
Easily reinstall all currently installed packages on another machine or version of R.
transfer_packages(
library = .libPaths()[1],
output = "online",
expiry = "7d",
filename = "transfer_packages",
list_remotes = TRUE,
quiet = FALSE
)
library |
The location of the library on the current machine to copy. |
output |
One of |
expiry |
Expiry for online file store in days. Weeks can be given with |
filename |
Filename for the local output file. Ignored if |
list_remotes |
Logical (default |
quiet |
Logical (default |
If output
is online
, the resulting list of currently installed packages is stored on https://file.io for the time specified in expiry
, or until the URL is first accessed.
Note that both visiting the URL and sourcing the URL count as access, and it will be removed after either.
If output
is local
, an R script file (.R
) is saved to the current working directory, which can be transferred manually to another machine.
Beware if using quiet = TRUE
together with output = online
, as the source command will not be
Prints instructions to console if quiet = FALSE
, and invisibly returns the source command to use on the other machine.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.