Install an R package from source

R

Today I tried to install the R package IPWsurvival package from the CRAN repository and found that the package was removed from there.

The formerly-available version of the package can be downloaded from the archive. So I decided to download the file and install it from source.

I saved the IPWsurvival_0.5.tar.gz file in the working directory on my MacBook Pro and run the following command on the R console.

install.packages("IPWsurvival_0.5.tar.gz", repos = NULL, type = 'source')

Now I can successfully import the package.

library(IPWsurvival)

Comments

Copied title and URL