Apparently, the instructions I suggested 2.5 years ago are still relevant for people using outdated versions of Mac R. Assuming you have Xcode and command line tools installed, you first need to either: a) reboot (without loading which either versions of data.table., reshape2 and dplyr) or b) remove all loaded namespaces that may conflict with the ability to test download new packages:
unloadNamespace('data.table') unloadNamespace('reshape2') unloadNamespace('plyr')
Then build from the source:
install.packages("data.table", type="source", dependencies=TRUE)
The reason that creating from the source may work when installing the binary package may not be because the previous strategy allows you to better check version dependencies.
source share