Set up R packages in a new environment is annoying.
Of course, we have packrat
and docker
. Both of them are excellent tools. However, do you also feel in the same way that these tools are too fancy for this simple task? All we need here is just to "copy" all the R packages we have on computer A and "paste" them to computer B. Could we just have a simple solution for this simple task?
This package will allow you to copy the names of your favorite packages to a public cloud space using pkg_copy()
. Your package info will stay there for 24 hrs and you will get a download code. On a new computer, you can use that code inside pkg_paste()
to download all the packages that are not on the new computer. It is just that simple!
library(pkgcopier)
pkg_copy()
Output: Success! You just copied your R package info to cloud! Your download code is: mh223J3LHD0a This code will expire in 24 hours. Re-run this function if time runs out.
install.packages("pkgcopier")
library(pkgcopier)
pkg_paste("mh223J3LHD0a")
That's it!
The names of your packages are uploaded to https://uguu.se/, a temporary file hosting website. It is developed by nokonoko and the github project page is here.
Welcome contributions from all levels. Also, feel free to use the source code in other packages.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.