School of Statistics

Image of Goldy Gopher and link to School of Statistics

Wordmark of and link to University of Minnesota
Applied Linear Regression, 3rd Ed.
Installing the R package under Mac OS 10

These instructions assume R version 2.0.1 or later. You will need at least version 2.0.0 to use the alr3 package.

If you can be connected to the internet while using R for Mac OS 10, start R and simply type

> install.packages("alr3")

You will get a dialog listing sites that have copies of the package. Select one near your home, and click OK and the package will be installed.

You can get instructions to use the package.

If you cannot be connected to the internet while using R for Mac OS 10 but you do have administrator privileges, you must first download a file. Go to the the description of the alr3 package on CRAN. Click on the file for the Mac OS10 binary, with a name like alr3_1.0.9.tar.tgz (the 1.0.9 extension may be a higher number). Depending on the settings for your browser, you will either end up with a file called alr3_1.0.9.tar.tgz, which is a "local source package", a file called "alr3_1.0.9.tar", which is a "local binary package", or a directory called "alr3_1.0.9", which is a "local package dirctory."

Start R, and select the menu item Data&Packages-->Package Installer. In the resulting dialog, make sure that the value of the scrolling list at the top of the dialog matches the type of your download. At the bottom of the dialog, click on "At System Level" if you have administrator privileges on this computer, and wish to install the packages for all users. Click on one of the other options if you want to install elsewhere, for example on removable media if you are using a lab computer. Finally, click on Install/Update, browse to the file/directory you downloaded, click OK, and the package will be installed. Click on the go-away button (the red circle at the top left of the window) to make the package manager go away. You can install other packages (e.g., car) in exactly the same way.

You can get instructions to use the package.