Only supported if lib is of length one (or missing), To/import/suggest (and so on recursively).Ĭan also be a character vector, a subset ofĬ("Depends", "Imports", "LinkingTo", "Suggests", "Enhances"). Uninstalled packages which these packages depend on/link
Logical indicating whether to also install If it isĭownloaded_packages of the session temporaryĭirectory will be used (and the files will be deleted The function makes an internal call to available.packages.ĭirectory where downloaded packages are stored. Listing packages available at the repositories, or NULL when Unused ifĪ matrix as returned by available.packages Overrides argument repos.ĭownload method, see download.file. You burned only the ‘ contrib’ section on a CD, or only haveīinary packages. Use thisĪrgument if your repository mirror is incomplete, e.g., because URL(s) of the contrib sections of the repositories. This will be inferred by extension from pkgs if of length one. To use, e.g., the URL of a CRAN mirror such asĬan be NULL to install from local files, directories or URLs: If missing, defaults toĬharacter vector, the base URL(s) of the repositories Tilde-expansion will be done on file paths.Īvailable packages is presented where possible in an interactive RĬharacter vector giving the library directories where to tgz’įiles containing binary package archives.
Or binary package archive files (as created by R CMD buildĪccepted and the files will be downloaded and installed from localĬopies.) On a CRAN build of R for macOS these can be ‘. These file paths can be source directories or archives Suitable tools installed (see the ‘Details’ section). Specified with type = "source", but some packages need Source directories or file paths or URLs of archives may be ( and file:// URLs are also acceptedĪnd the files will be downloaded and installed from local copies.) If repos = NULL, a character vector of file paths,įile paths of ‘. )Ĭharacter vector of the names of packages whoseĬurrent versions should be downloaded from the repositories. Install.packages ( pkgs, lib, repos = getOption ( "repos" ), contriburl = contrib.url ( repos, type ), method, available = NULL, destdir = NULL, dependencies = NA, type = getOption ( "pkgType" ), configure.args = getOption ( "configure.args" ), configure.vars = getOption ( "configure.vars" ), clean = FALSE, Ncpus = getOption ( "Ncpus", 1L ), verbose = getOption ( "verbose" ), libs_only = FALSE, INSTALL_opts, quiet = FALSE, keep_outputs = FALSE.