R CMD INSTALL [options] [-l lib] pkgs
To install a source package with compiled code only for the
sub-architecture used by
There are two ways to install for all available sub-architectures. If
the configure script is known to work for both Windows architectures,
use flag (and packages can specify this
via a Biarch field in their DESCRIPTION
files).
Second, a single tarball can be installed with
R CMD INSTALL --merge-multiarch mypkg_version.tar.gz
pkgs
to be tried, call this via a shell loop. If used as lib
, packages are installed into the library tree rooted at the
first directory in the library path which would be used by Rrun in
the current environment.
To install into the library tree lib
, use
lib
to the library path for
duration of the install, so required packages in the installation
directory will be found (and used in preference to those in other
libraries).
#ifdef windows
It is possible that environment variable
Both lib
and the elements of pkgs
may be absolute or
relative path names of directories. pkgs
may also contain
names of package archive files: these are then extracted to a
temporary directory. These are tarballs containing a single
directory, optionally compressed by
Tarballs are by default unpackaged by the internal untar
function: if needed an external
The package sources can be cleaned up prior to installation by or after by : cleaning is essential if the sources are to be used with more than one architecture or platform. #ifdef unix
Some package sources contain a LIBS
and CPPFLAGS
to specify these
locations (and set these via ), see section
If the attempt to install the package fails, leftovers are removed. If the package was already installed, the old version is restored. This happens either if a command encounters an error or if the install is interrupted from the keyboard: after cleaning up the script terminates.
For details of the locking which is done, see the section
install.packages
.
#ifdef windows
Option can be used to zip up the installed package for distribution. #endif #ifdef unix
Option can be used to tar up the installed package
for distribution as a binary package (as used on OS X). This is done
by utils::tar
unless environment variable
By default a package is installed with static HTML help pages if and only if Rwas: use options and to override this.
Packages are not by default installed keeping the source formatting
(see the keep.source
argument to source
): this
can be enabled by the option or by setting
environment variable yes
.
Use
REMOVE
;
.libPaths
for information on using several library trees;
install.packages
for R-level installation of packages;
update.packages
for automatic update of packages using
the Internet or a local repository. The section on RGui
),
#endif
RShowDoc
and the