I was trying to install renv packages. Here're my steps I did:
-
Install renv package
install.packages( "https://cran.r-project.org/src/contrib/Archive/renv/renv_0.12.5.tar.gz", repos = NULL, type = "source" ) -
Initialize a local library
renv::init(bare=TRUE) -
Install the correct packages
renv::restore()
In the #3 process, I faced an error message as below;
Installing Matrix [1.2-18] ...
FAILED
Error installing package 'Matrix':
- installing to library 'C:/Users/gkim01/AppData/Local/Temp/RtmpCqkB9U/renv-staging-7a9c1207877'
- installing source package 'Matrix' ...
** package 'Matrix' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(paste(cmd, "shlib-clean")) : 'make' not found
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'Matrix' - removing 'C:/Users/gkim01/AppData/Local/Temp/RtmpCqkB9U/renv-staging-7a9c1207877/Matrix'
Error: install of package 'Matrix' failed
Please help me how to solve the problem. Thanks!!