Error in renv:restore()

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

  1. Install renv package
    install.packages( "", repos = NULL, type = "source" )

  2. Initialize a local library

  3. Install the correct packages

In the #3 process, I faced an error message as below;

Installing Matrix [1.2-18] ...
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.