
A-218 R AS A PROGRAMMING LANGUAGE AND ENVIRONMENT
A.16 Libraries, Packages
External information can be stored in (text) files and packages. In general, additional functions
are provided as packages. Packages may be installed as part of the basic installation or installed
by the user. Once packages are installed, they are loaded with
library()
when needed. Data sets contained in the package are then included in the search path and can
be listed using data() without arguments:
data()
Example:
library(nls)
data()
data(Puromycin)
If you use R packages, please treat them as you would treat any other scientific source of
information. Credit should be given where ...