# Command Line Options for the INSTALL Command

You can install packages from the command line by using the command `TERR CMD INSTALL` and specifying any of the following options to control the installation.

Usage

      TERR CMD INSTALL [options] pkgs

Description
  Install packages specified by `pkgs`, which can be the names of source package directories, source package tar.gz files, or binary (prebuilt) package .zip files.
Options
  `-o`, `--option=value` means that `-o value` and `--option=value` are synonymous.
  Note: Other arguments that can be used with `R CMD INSTALL` are ignored.

Option | Description
--- | ---
`-h`, `--help` | Describe the arguments that can be passed to this command.
`-l`, `--library=LIB_DIR` | Install packages to the library directory LIB_DIR.
`--build` | Build distributable archives of newly-installed packages.
`--install-tests` | Install the specified package tests directory.
`-d`, `--debug` | Enable debugging messages.
`-v`, `--version` | Display the package installer version information.
`--no-R`, `--no-libs`, `--no-data`, `--no-help`, `--no-demo`, `--no-exec`, `--no-inst` | Suppress the installation of the specified part of the package (for testing).
`--no-configure` | Do not run the configuration scripts.
`--no-test-load` | Do not try to attach the package in a new TERR process after installing. Otherwise, an unattachable package is deleted.
`--clean` | After installation, remove from the source directory any files created during installation.
`--preclean` | Before installation, remove from the source directory any files made during a previous installation.
`--configure-args` | Command line arguments for the package configuration script.
`--configure-vars` | The environment variables set before running the package configuration script.
`--(with|without)-keep.source` | Keep or do not keep the source information with the R functions.
`--(with|without)-keep.parse.data` | Keep or do not keep the parse data with the R functions.