Skip to contents

Install the RPiR package

You need to install the Reproducible Programming in R (RPiR) package to carry out the exercises for this course.

Instructions

First, make sure that the devtools package is installed by calling library(devtools). If that doesn’t work, then install it:

install.packages("devtools")

Because the RPiR package is hosted on github, we need to use install_github (from the devtools package):

If you see something like this:

These packages have more recent versions available.
Which would you like to update?
1: All                              
2: CRAN packages only               
3: None                             
4: plyr      (1.8.4 -> 1.8.5) [CRAN]
5: cli       (1.1.0 -> 2.0.0) [CRAN]
6: backports (1.1.4 -> 1.1.5) [CRAN]

press 1.. and if you’re asked:

Do you want to install from sources the package which needs compilation?

say no.

If this has worked, you should be able to load the RPiR package by typing:

library(RPiR)