Theo Pepler

Home | Research | Teaching | Software | Links | HOWTO's

HOWTO: INSTALL R PACKAGES FROM GITHUB REPOSITORIES

  1. In R, install and load the devtools package with

    install.packages('devtools')
    library(devtools)


  2. Install the package from the GitHub repository with a command like (for the cpc package hosted at https://github.com/tpepler/cpc, for example)

    install_github('tpepler/cpc')

  3. Load the installed package in R with

    library(cpc)

    and it will be ready to use.