I tried to install fBasics package. I believe that is is already installed, but when I type into library() or require() command, it always tells that there is no such package. I attached my error messages below.
install.packages("fBasics")
also installing the dependency ‘gss’
There are binary versions available but the source versions are later:
binary source needs_compilation
gss 2.1-9 2.1-12 TRUE
fBasics 3042.89 3042.89.1 TRUE
Do you want to install from sources the packages which need compilation?
y/n: y
installing the source packages ‘gss’, ‘fBasics’
downloaded 501 KB
downloaded 831 KB
- installing source package ‘gss’ ...
** package ‘gss’ successfully unpacked and MD5 sums checked
** libs
gfortran -fPIC -g -O2 -c cdennewton.f -o cdennewton.o
make: gfortran: No such file or directory
make: *** [cdennewton.o] Error 1
ERROR: compilation failed for package ‘gss’
- removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/gss’
Warning in install.packages :
installation of package ‘gss’ had non-zero exit status
ERROR: dependency ‘gss’ is not available for package ‘fBasics’
- removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/fBasics’
Warning in install.packages :
installation of package ‘fBasics’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/zw/qjv_vp8j0lj8031gkwx34ljc0000gn/T/RtmpEB1cec/downloaded_packages’
library(fBasics)
Error in library(fBasics) : there is no package called ‘fBasics’
library("fBasics")
Error in library("fBasics") : there is no package called ‘fBasics’
Thank you for any kinds of suggestion and help!