Wednesday, August 24, 2016

Updating R

There are plenty of blogs on the best ways to update R so I'm not going to repeat those. However, moving of packages is never that straightforward especially when I need to transition between computers. The set of code below was great for me as a way to quickly install all the packages I use, as long as you do a bit of prep work.

This first bit stores your current list of packages inside a csv file.


The last part was helpful for installing into RStudio. As you open RStudio, you end up loading certain packages automatically and therefore get issues when you try to install them. This code gets the difference between what is already loaded or installed and your list you downloaded prior to installing.

No comments:

Post a Comment