Error in renv:restore()

I was trying to install renv packages. Here're my steps I did:

  1. Install renv package
    install.packages( "https://cran.r-project.org/src/contrib/Archive/renv/renv_0.12.5.tar.gz", repos = NULL, type = "source" )

  2. Initialize a local library
    renv::init(bare=TRUE)

  3. 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!!

If you are choosing to compile from source then you need a build chain. You serm tk be on windows so i would think Rtools is what you need.

1 Like

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.