genlasso程序包安装问题?

install.packages("genlasso_1.3.tar.gz")
inferring 'repos = NULL' from 'pkgs'

  • installing source package 'genlasso' ... ** 成功将'genlasso'程序包解包并MD5和检查 ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'genlasso'

  • removing 'E:/ruanjian/R-3.5.2/library/genlasso'
  • restoring previous 'E:/ruanjian/R-3.5.2/library/genlasso' In R CMD INSTALL Warning in install.packages("genlasso_1.3.tar.gz") : 安装程序包'genlasso_1.3.tar.gz'时退出狀態的值不是0

这个是安装提示的错误,我也试过其他很多种方法,但是都没有安装成功,并且总是提示不是有效的安装程序包。求大神解答!

1.更新 Rtools
2. 在R中运行以下代码(必须)
writeLines('PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"', con = "~/.Renviron")
Sys.which("make")

"C:\rtools40\usr\bin\make.exe"

Warning in system(cmd) : 'make' not found
你的nmake/make和gcc配置对了么

你是在windows上用么?建议你用linux