commuteR makes working on two (or more!) machines more comfortable. It was created out of a need to sync installed package on a workstation and a laptop, so I could work on my commute. It was mostly created during this commute, instead of actually working.
commuteR provides two functions, which (at the moment) you'll need to call manually
backup_to_cloud()
: Creates lists of installed packages, while differentiating
CRAN and GitHub packages, and saves these lists to Dropbox (You'll need an account
for that. If you don't have one already, consider creating one using this
link, and I'll get a referral bonus).
restore_from_cloud()
: Looks for the lists of packages created by backup_to_cloud()
in your Dropbox account. It then installs them, one by one.
# You can install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("pinusm/commuteR")
library(commuteR)
On your source machince (just pick one, it doesn't really matter which is the source and which is the target) run the backup function (can be assigned to hotkeys). Let it run for a short while:
backup_to_cloud()
You'll be asked to authenticate and log into your Dropbox account (This is handled by rDrop2. I have NO way of knowing, let alone storing or exposing, your Dropbox credentials)/
Then, on your target machine, run the restore function. You'll again need to authnticate your Dropbox account:
restore_from_cloud()
You're then welcome to run the backup function on your 'target' machine, and the restore function on your 'source' machine, to have a two-way sync. You probably won't need to autheticate again.
Image by Clker-Free-Vector-Images from Pixabay
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.