I am unable to install any packages after I downgraded my R version from 3.5.1 to 3.2.1 (uninstall 3.5.1 and re-install 3.2.1) on my mac. Any package that I try to install fails with the following error.
> install.packages("data.table")
There is a binary version available but the source version is later:
binary source needs_compilation
data.table 1.9.6 1.12.0 TRUE
Do you want to install from sources the package which needs compilation?
y/n: y
installing the source package ‘data.table’
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
3 3100 3233k 100 3233k 0 0 193k 0 3790k 0 --:--:-- --:--:-- --:--:-- 3786k
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2018i.1.0/zoneinfo/America/Chicago'
* installing *source* package ‘data.table’ ...
** package ‘data.table’ successfully unpacked and MD5 sums checked
** libs
llvm-gcc-4.2 -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -mtune=core2 -g -O2 -c assign.c -o assign.o
make: llvm-gcc-4.2: No such file or directory
make: *** [assign.o] Error 1
ERROR: compilation failed for package ‘data.table’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/data.table’
Warning in install.packages :
installation of package ‘data.table’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/23/shy8fvwx0hq0s70yl16kqfd40000gn/T/Rtmp0oJdLF/downloaded_packages’
Much appreciate any help!!