Installing R Packages on your Ubuntu CS Account

If you are currently in Stats with R, or just find yourself wanting to play with some R packages. Below are some commands to install the required Packages for Stats with R. This guide is intended for students using the C-208 Computers and logging into their CS accounts on the Ubuntu side.

Once you are logged in do the following:

1. Run R (Search “R” in the finder menu)

2. Install Packages (Rfit, npsm, UsingR, devtools, hbrfit, and npsm reg2.

NOTE: Please install these in order.

install.packages("Rfit")

install.packages("npsm")

install.packages("UsingR")

install.packages("devtools")

library(devtools)

install_github("kloke/hbrfit")

install_github("kloke/npsmReg2")

3. Load packages: If you wish to load any of these packages use the library command (see below)

library(Rfit)

library(npsm)

library(UsingR)

library(hbrfit)

library(npsmReg2)

You should now have all the packages you need for your Stats with R course.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>