The R Project SVN R

Rev

Rev 61983 | Rev 64630 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61983 Rev 62602
Line 34... Line 34...
34
    \sQuote{Details} section).
34
    \sQuote{Details} section).
35
#endif
35
#endif
36
#ifdef unix
36
#ifdef unix
37
    \file{.tar.gz} files.  These can be source archives or binary
37
    \file{.tar.gz} files.  These can be source archives or binary
38
    package archive files (as created by \command{R CMD build --binary}).
38
    package archive files (as created by \command{R CMD build --binary}).
39
    On a CRAN build of \R for Mac OS X these can be \file{.tgz} files
39
    On a CRAN build of \R for OS X these can be \file{.tgz} files
40
    containing binary package archives.
40
    containing binary package archives.
41
    Tilde-expansion will be done on the file paths.
41
    Tilde-expansion will be done on the file paths.
42
#endif
42
#endif
43
 
43
 
44
    If this is missing or a zero-length character vector, a listbox of
44
    If this is missing or a zero-length character vector, a listbox of
Line 107... Line 107...
107
    Possible values are \code{"source"}, \code{"mac.binary.leopard"} and
107
    Possible values are \code{"source"}, \code{"mac.binary.leopard"} and
108
    \code{"win.binary"}: the binary types can be listed and downloaded
108
    \code{"win.binary"}: the binary types can be listed and downloaded
109
    but not installed on other platforms.
109
    but not installed on other platforms.
110
 
110
 
111
    The default is the appropriate binary type on Windows and on the
111
    The default is the appropriate binary type on Windows and on the
112
    CRAN binary Mac OS X distribution, otherwise \code{"source"}.  For
112
    CRAN binary OS X distribution, otherwise \code{"source"}.  For
113
    the platforms where binary packages are the default, an alternative
113
    the platforms where binary packages are the default, an alternative
114
    is \code{"both"} which means \sQuote{try binary if available,
114
    is \code{"both"} which means \sQuote{try binary if available,
115
    otherwise try source}.  (This will only choose the binary package if
115
    otherwise try source}.  (This will only choose the binary package if
116
    its version number is no older than the source version.  In
116
    its version number is no older than the source version.  In
117
    interactive use it will ask before attempting to install source
117
    interactive use it will ask before attempting to install source
Line 176... Line 176...
176
    where to save the outputs.  Ignored when installing from local
176
    where to save the outputs.  Ignored when installing from local
177
    files.
177
    files.
178
  }
178
  }
179
  \item{\dots}{
179
  \item{\dots}{
180
    Arguments to be passed to \code{\link{download.file}} or to the
180
    Arguments to be passed to \code{\link{download.file}} or to the
181
    functions for binary installs on Mac OS X and Windows (which accept
181
    functions for binary installs on OS X and Windows (which accept
182
    an argument \code{"lock"}: see the section on \sQuote{Locking}).
182
    an argument \code{"lock"}: see the section on \sQuote{Locking}).
183
  }
183
  }
184
}
184
}
185
\details{
185
\details{
186
  \R packages are primarily distributed as \emph{source} packages, but
186
  \R packages are primarily distributed as \emph{source} packages, but
187
  \emph{binary} packages (a packaging up of the installed package) are
187
  \emph{binary} packages (a packaging up of the installed package) are
188
  also supported, and the type most commonly used on Windows and from
188
  also supported, and the type most commonly used on Windows and from
189
  the CRAN distribution for Mac OS X.  This function can install either
189
  the CRAN distribution for OS X.  This function can install either
190
  type where supported, either by downloading a file from a repository
190
  type where supported, either by downloading a file from a repository
191
  or from a local file.  The default type is given by
191
  or from a local file.  The default type is given by
192
  \code{\link{getOption}("pkgType")}: this defaults to \code{"source"}
192
  \code{\link{getOption}("pkgType")}: this defaults to \code{"source"}
193
  apart from under Windows or a CRAN binary distribution for Mac OS X.
193
  apart from under Windows or a CRAN binary distribution for OS X.
194
 
194
 
195
  This is the main function to install packages.  It takes
195
  This is the main function to install packages.  It takes
196
  a vector of names and a destination library, downloads the packages
196
  a vector of names and a destination library, downloads the packages
197
  from the repositories and installs them.  (If the library is omitted
197
  from the repositories and installs them.  (If the library is omitted
198
  it defaults to the first directory in \code{.libPaths()}, with a
198
  it defaults to the first directory in \code{.libPaths()}, with a
Line 258... Line 258...
258
  single package, and for multiple packages when \code{Ncpus > 1L}.
258
  single package, and for multiple packages when \code{Ncpus > 1L}.
259
  Finally locking (and restoration on error) can be suppressed by
259
  Finally locking (and restoration on error) can be suppressed by
260
  \option{--no-lock}.
260
  \option{--no-lock}.
261
  % and also options(install.lock = FALSE) in an \R startup file.
261
  % and also options(install.lock = FALSE) in an \R startup file.
262
 
262
 
263
  For a Mac OS X or Windows binary install, no locking is done by
263
  For an OS X or Windows binary install, no locking is done by
264
  default.  Setting argument \code{lock} to \code{TRUE} (it defaults to
264
  default.  Setting argument \code{lock} to \code{TRUE} (it defaults to
265
  the value of \code{\link{getOption}("install.lock", FALSE)}) will use
265
  the value of \code{\link{getOption}("install.lock", FALSE)}) will use
266
  per-directory locking as described for source installs: if the value
266
  per-directory locking as described for source installs: if the value
267
  is \code{"pkglock"} per-package locking will be used.
267
  is \code{"pkglock"} per-package locking will be used.
268
 
268