New release of R – all packages gone?

A brand new release of R is out, you install it using the convenient installer and bam! you are up to date again. And, as a special treat you might find yourself without the packages you had previously installed. At least, that is what happened to me. A simple way to get the packages installed again? Use this line of code in your R console:

install.packages( as.character( as.data.frame( installed.packages( "/Library/Frameworks/R.framework/Versions/3.1/Resources/library/" ))$Package))

This will automatically install all the packages that were installed for the previous release (which in this case was R 3.1, which you can see in the path). Depending on what version number your previous release had you will have to change the version number in the path accordingly.

Nah, is that a time saver?

Coming back to the head line: your packages are not gone at all, it is just that your new version of R is looking for packages in a new folder. See it as an advantage, if you ever have to deal with a package that is only running say with R 3.0 then you can go back to the 3.0 directory with all the other packages that were functional at that time as well.

And as a side note, a quick google search will bring up similar pieces of code thanks to the helpful bloggers Randy Zwitch and rmkrug.

Goodbye London

Slowly the train rolls out of Euston train station into a mild rain shower. It is as if Manchester is sending a kind reminder not to be too disappointed about the weather back home.

https://instagram.com/p/90dGJMu5Mg/?taken-by=marcosmolla

Five weeks have I stayed and worked in London. I finished my project I came here for. Even better, I’m happy about my results. What I found? Well, it appears that bumblebees are very capable in distinguishing between an easy and a difficult task. If the task was easy they wouldn’t rely on information (which helps to solve the task) that is right 50% of the time. But if the task was difficult four times more bees readily followed that information. I find that fascinating.

https://instagram.com/p/9O_gAqO5N6/?taken-by=marcosmolla

Yet, I’ve not only worked here, I’ve also been a Londoner, even if it was only for a short amount time. I commuted in busy rush hour tubes, shopped in restless East End, went for a run in the Olympic Park and along the canals, lived in Hackney, visited pubs in Islington, and of course been around Queen Mary in Tower Hamlets.

https://instagram.com/p/9O-9ZgO5Mn/?taken-by=marcosmolla

More than coming around and accomplishing some work I met kind, open, and intellectually stimulating people. It was a delight to stay and work at Lars Chittka’s group where I received support from all sides, had great discussions, and felt welcome as if I would forever have been a part of that group.

Now, it is time to go back home again.