This is what happens when Install the packages. Here I have installed using .tar.gz file.The same error continues in commands as well.
**install.packages("~/Downloads/randomForest_4.6-**12.tar.gz", repos = NULL, type = "source")
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2019c.1.0/zoneinfo/Asia/Kolkata'
- installing source package ‘randomForest’ ...
** package ‘randomForest’ successfully unpacked and MD5 sums checked
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c classTree.c -o classTree.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c regTree.c -o regTree.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c regrf.c -o regrf.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c rf.c -o rf.o
rf.c:454:1: warning: expression result unused [-Wunused-value]
^ ~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
gfortran -fPIC -g -O2 -c rfsub.f -o rfsub.o
make: gfortran: No such file or directory
make: *** [rfsub.o] Error 1
ERROR: compilation failed for package ‘randomForest’
- removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/randomForest’
Warning in install.packages :
installation of package ‘/Users/apple/Downloads/randomForest_4.6-12.tar.gz’ had non-zero exit status
install.packages("~/Downloads/randomForest_4.6-12.tar.gz", repos = NULL, type = "source")
- installing source package ‘randomForest’ ...
** package ‘randomForest’ successfully unpacked and MD5 sums checked
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c classTree.c -o classTree.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c regTree.c -o regTree.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c regrf.c -o regrf.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c rf.c -o rf.o
rf.c:454:1: warning: expression result unused [-Wunused-value]
^ ~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
gfortran -fPIC -g -O2 -c rfsub.f -o rfsub.o
make: gfortran: No such file or directory
make: *** [rfsub.o] Error 1
ERROR: compilation failed for package ‘randomForest’
- removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/randomForest’
Warning in install.packages :
installation of package ‘/Users/apple/Downloads/randomForest_4.6-12.tar.gz’ had non-zero exit status