Académique Documents
Professionnel Documents
Culture Documents
You can download the R software from the R project web page
http://www.r-project.org
This is the main site for information on R. At this site are directions for
installing R, accompanying packages and other sources of
If you have write permission in the necessary files, R will prompt you to
select a mirror site from which to download the ISwR package. If so,
skip this next material on choosing a personal library.
Choose a personal library (if required by R)
If you do not have write permission in the necessary files, you will get
the following error message:
Warning in install.packages("car") : 'lib = "C:/Program Files/R/R3.0.2/library"' is not writable
Error in install.packages("car") : unable to install packages
R will ask "Would you like to use a personal library instead?" Click Yes.
R will offer to create a personal library in your user directory. Click Yes.
After that, R will prompt you to choose a mirror site for the download.
This is the end of material on choosing a personal library.
R will prompt you to select a mirror site from which to download the
ISwR package. Choose one near your location. The output should look
something like this.
> install.packages("ISwR")
--- Please select a CRAN mirror for use in this session ---
trying URL
'http://cran.cnr.Berkeley.edu/bin/windows/contrib/2.6/ISwR_2.0-2.zip'
Content type 'application/zip' length 281819 bytes (275 Kb)
opened URL
downloaded 275 Kb
package 'ISwR' successfully unpacked and MD5 sums checked
The downloaded packages are in
C:\Documents and Settings\Michael Walker\Local
Settings\Temp\RtmplnWoP0\downloaded_packages
updating HTML package descriptions
2. After you have installed the ISwR package, you need to load it into R
each time you start a new R session. To do this, use the library()
function. Notice that there are no quote marks around (ISwR).
> library(ISwR)
Look at the data sets in the ISwR package.
> data(package = "ISwR")
You can look at all the data sets currently loaded into your R session.
> data(package = .packages(all.available = TRUE))
Dalgaard Appendix B describes all the data sets. If you know the name
of the data set, such as the malaria data set, you can use the help
function:
> help(malaria)