|||

Keeping R libraries in sync between different computers using Dropbox

We have a few computers including laptops in our network which all use
R (r-project.org) for statistics. We use Dropbox to keep all our files
in sync and we are all on ubuntu.

The problem was that we wanted to keep our R installations in sync so
we don’t have different libraries and settings everywhere.

All you need to do is copy the Renviron file from /etc/R/Renviron into
your dropbox,
and then open it and find a line that starts R_LIBS_USER=
We changed ours to R_LIBS_USER=${R_LIBS_USER-‘~/Dropbox/path/to/2.10’}
and moved the existing library folders from /usr/lib/R to their
corresponding new home in Dropbox. So this line tells R to look there
for its libraries, which as they are in dropbox will stay in sync.
We can also put any other site-wide settings we want in that file.

But we still need R to find that config file at startup, so on every
computer you now do

sudo ln ~/Dropbox/path/to/Renviron /etc/R/Renviron -s -b

what this does is overwrite the old R settings file with a link back
to a new file which is in Dropbox. So it will use the dropbox settings
file when R starts up.

(R distinguishes between site-wide configuration and individual
configuration but that doesn’t concern us).

Hope this is of use to someone googling R and Dropbox.

Up next Using APA citation and bibliography styles in Lyx Lyx (lyx.org) is IMHO certainly the best software for writing longer, structured documents like a thesis. But most of its users are in the hard My first Reproducible Research Compendium I have just completed my first Reproducible Research Compendium “Analysis of the combined survey datasets from the American Red Cross Tsunami
Latest posts Making notes on PDFs without computer or paper Publications causal-map Causal Map intro Causal Mapping - an earlier guide The walk to school in Sarajevo Glitches Draft blog post for AEA365 Theory Maker! Inventory & analysis of small conservation grants, C&W Africa - Powell & Mesbach! Lots of charts! Answering the “why” question: piecing together multiple pieces of causal information rbind.fill for 1-dimensional tables in r yED graph editor Examples of trivial graph format Using attr labels for ggplot An evaluation puzzle: “Talent show” An evaluation puzzle: “Mobile first” An evaluation puzzle: “Many hands” An evaluation puzzle: Loaves and fishes An evaluation puzzle: “Freak weather” An evaluation puzzle: “Billionaire” Using Dropbox for syncing Shiny app data on Amazon EC2 Progress on the Causal Map app Articles and presentations related to Causal Maps and Theorymaker Better ways to present country-level data on a world map: equal-area cartograms A starter kit for reproducible research with R A reproducible workflow for evaluation reports Welcome to the Wiggle Room Realtime comments on a Theory of Change Responses to open questions shown as tooltips in a chart A panel on visualising Theories of Change for EES 2018?