I need to use the package fastcmprsk to run a prediction model. However, this package is removed from the CRAN repository in the current R version. I tried to use the following codes to install it:
remotes::install_version("fastcmprsk", version="1.1.1")
It failed with the following error message (I typed the error message since I can't copy and past it from R to this page. It may contain typos):
Downloading package from url: https://cran.rstudio.com//src/contrib/Archive/fastcmprsk/fastcmprsk_1.1.1.tar.gz
Installing 1 packages: dynpred
trying URL 'https://cran.rstudio.com/src/contrib/dynpred_0.1.2.tar.gz'
Content type 'application/x-gzip' length 107788 bytes (105 KB)
downloaded 105 KB
installing source package 'dynpred' ...
package 'dynpred' successfully unpacked and MD5 sums checked
using staged installation
libs
Error n system(paste(MAKE, p1(paste("-f",shQuote(makefiles))),"compilers"), 'make' not found
*removing 'C:/Program Files/R/R-4.3.1/library/dynpred'
The downloaded source packages are in 'C:\Users\xxx\AppData\Local\Temp\RtmpILXcj9\downloaded_packages'
ERROR: dependency 'dynpred' is not available for package 'fastcmprsk'
*removing 'C:/Program Files/R/R-4.3.1/library/fastcmprsk'
Warning messages:
- In missing_devel_warning(pkgdir):
Package fascmprsk has compiled code, but no suitable compiler(s) were found. Installation will likely fail.
Install Rtools (Removed the link). Then use the pkgbuild package or make sure the Rtools in the PATH. - In i.p(...): installation of package 'dynpred' had non-zero exit status
3: In i.p(...):
installation of package (removed the link)had non-zero exit status