ggplot2 2.0.0 has been released

Warning!

Package photobiologygg is NOT compatible with the just released new version of package ggplot2. I knew this was coming but I will still need some days before getting my own package updated. I had used unexported functions, and of course this was dangerous. The good news is that the improvements in ggplot will allow me to implement the same functionality without need for the “illegal tricks” I had earlier used.

Sorry about my delay with this! If you use photobiologygg please, wait a few days before updating ggplot2.

Moving or copying the library when upgrading R

Because I need to be sure that my packages work with current versions of R, I nowadays cannot skip any R update. I use many different packages, so re-installing all the packages in the library is something I would rather avoid.
Today I found that an easy way to automate this task is to use package installr, more specifically, a function with a very long, but descriptive name copy.packages.between.libraries().

library(installr)
copy.packages.between.libraries(ask = TRUE, keep.old = TRUE)

Will ask you to choose source and destination libraries from a list of available ones and copy without deleting them from the old library all packages. Using keep.old = FALSE, the default, will move the packages, and ask = FALSE the default will automatically select source and destination. This automatic guessing did not select the direction I expected for the case of a patched versus released version of R.
Anyway this is handy when one has, as the function itself reported some minutes ago 144 packages to move!
If you do not use patched versions of R this should be enough.

library(installr)
copy.packages.between.libraries()

I hope this bit of advice will make less painful my decision of no-longer supporting R 3.1.X and earlier!

RStudio (new preview)

The people developing RStudio have done it again!

I have been using for a couple of days RStudio from the 0.99 version previews, and it is working extremely well. The new functionality improves very much the easy of use: now there is auto-complete and automatic “bubble” help, both are a hugely helpful when writing scripts and package code.

You may still want to wait, as new versions are being released almost every other day. Anyway, I wanted to share the good news.

http://www.rstudio.com/products/rstudio/download/preview/