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.