I have a R studio Server running on Ubuntu system. But it always fails when I try to install packages. Below is an example when I installed 'sf' package.
install.packages('sf')
Installing package into ‘/home/dell/R/x86_64-pc-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘proxy’, ‘e1071’, ‘wk’, ‘classInt’, ‘magrittr’, ‘Rcpp’, ‘s2’, ‘units’
...
- installing source package ‘proxy’ ...
** package ‘proxy’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
sh: 1: make: not found
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), :
error in running command - removing ‘/home/dell/R/x86_64-pc-linux-gnu-library/4.4/proxy’
Warning in install.packages :
installation of package ‘proxy’ had non-zero exit status - installing source package ‘wk’ ...
** package ‘wk’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
sh: 1: make: not found
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), :
error in running command - removing ‘/home/dell/R/x86_64-pc-linux-gnu-library/4.4/wk’
Warning in install.packages :
installation of package ‘wk’ had non-zero exit status - installing source package ‘magrittr’ ...
** package ‘magrittr’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
sh: 1: make: not found
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), :
error in running command - removing ‘/home/dell/R/x86_64-pc-linux-gnu-library/4.4/magrittr’
Warning in install.packages :
installation of package ‘magrittr’ had non-zero exit status - installing source package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
sh: 1: make: not found
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), :
error in running command - removing ‘/home/dell/R/x86_64-pc-linux-gnu-library/4.4/Rcpp’
Warning in install.packages :
installation of package ‘Rcpp’ had non-zero exit status
ERROR: dependency ‘proxy’ is not available for package ‘e1071’ - removing ‘/home/dell/R/x86_64-pc-linux-gnu-library/4.4/e1071’
Warning in install.packages :
installation of package ‘e1071’ had non-zero exit status
ERROR: dependencies ‘Rcpp’, ‘wk’ are not available for package ‘s2’ - removing ‘/home/dell/R/x86_64-pc-linux-gnu-library/4.4/s2’
Warning in install.packages :
installation of package ‘s2’ had non-zero exit status
ERROR: dependency ‘Rcpp’ is not available for package ‘units’ - removing ‘/home/dell/R/x86_64-pc-linux-gnu-library/4.4/units’
Warning in install.packages :
installation of package ‘units’ had non-zero exit status
ERROR: dependency ‘e1071’ is not available for package ‘classInt’ - removing ‘/home/dell/R/x86_64-pc-linux-gnu-library/4.4/classInt’
Warning in install.packages :
installation of package ‘classInt’ had non-zero exit status
ERROR: dependencies ‘classInt’, ‘magrittr’, ‘Rcpp’, ‘s2’, ‘units’ are not available for package ‘sf’ - removing ‘/home/dell/R/x86_64-pc-linux-gnu-library/4.4/sf’
Warning in install.packages :
installation of package ‘sf’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpCopobC/downloaded_packages’
Connected to your session in progress, last started 2024-Jul-04 06:59:13 UTC (9 minutes ago)