⏱reading time: 5 min

The joy is (in the) playing

Last Monday, 23rd of April, R was updated to its version 3.5, codenamed The Joy in Playing, which as the rest of the releases, make reference to a Peanuts’ cartoon.

Since it’s a minor release (3.x) and not just a patch, it’s advisable to reinstall all your packages, in some cases, to make then work properly. For example, and in my case, since I’ve built all of them as a consequence of my Homebrew install, some of them where throwing me the following message

So, to reinstall all the packages that haven’t been build for your current R build, you can run the following command. (Be careful, rebuild all your packages could take time and resources, so it’s recommendable to do it at some moment that you aren’t using your machine)

I would recommend to run it twice, since some packages have dependencies and they need to be installed first and I don’t know if the command follows a specific installation order to avoid this errors like this –in other words, if the dependencies aren’t installed first to this specific release, the installation is going to fail. It doesn’t hurt to run the command again since if all the packages were rebuilt with the current R version they aren’t going to be reinstalled.

Java and rJava configuration

In some of my machines I hadn’t configured the new Java 10 with the prerelease rJava so Java 10 can be run properly in R. If this is your case remember to run:

so you yield something similar to:

So you can install / build rJava prerelease with the following command

devEMF

In another machine I wasn’t being able to install devEMF package. You can see the specific error I was getting in this Stack Overflow question.

The problem was the makevars file, which is crafted to use the LLVM. I commented all of the lines to build the package and all set. Seems that for some reason LLVM isn’t supported to build this package in this version of R (or it isn’t supported at all).

Remember to uncomment them after you finish the build.

data.table

Don’t forget that data.table package has also specific makevars necessities if you are building it, as you should, with LLVM. Remember that the flag -fopenmp has to be present / uncommented in the lines related to C and C++ compilers.

Remember to re-comment or delete the -fopenmp after you build data.table.

Leave a Reply