Hi! I'm trying to install lars and I'm currently facing this problem:
install.packages("lars")
Installing package into ‘/home/dimitra/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/lars_1.3.tar.gz'
Content type 'application/x-gzip' length 184025 bytes (179 KB)
==================================================
downloaded 179 KB
- installing source package ‘lars’ ...
** package ‘lars’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -fno-optimize-sibling-calls -fpic -g -O2 -fdebug-prefix-map=/build/r-base-apO4Ea/r-base-4.2.0=. -fstack-protector-strong -c delcol.f -o delcol.o
/bin/bash: gfortran: command not found
make: *** [/usr/lib/R/etc/Makeconf:191: delcol.o] Error 127
ERROR: compilation failed for package ‘lars’ - removing ‘/home/dimitra/R/x86_64-pc-linux-gnu-library/4.2/lars’
Warning in install.packages :
installation of package ‘lars’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpIVRsSC/downloaded_packages’
I have no idea what to do.