ggsurvfit package cannot be installed

79 views Asked by At

I was able to install ggsurvfit package, but was not able to library it. I pasted all information below.

install.packages("ggsurvfit")

The downloaded source packages are in ‘C:\Users\CH225175\AppData\Local\Temp\Rtmpk323Ys\downloaded_packages’

library(ggsurvfit)

Error in library(ggsurvfit) : there is no package called ‘ggsurvfit’

1

There are 1 answers

0
user23097547 On

For those who cannot install ggsurvfit package properly, here are the steps that helped me to install it:

  1. download RTools 4.0 at [https://cran.rstudio.com/bin/windows/Rtools/rtools40.html]
  2. Run the following code in RStudio: write('PATH="${RTOOLS40_HOME}//usr//bin;${PATH}"', file = "~/.Renviron", append = TRUE)
  3. Check if "make.exe" exists: Sys.which("make")
  4. install.packages("ggsurvfit") in RStudio