import.packages: Import packages

import.packagesR Documentation

Import packages

Description

Install the package with the specific version according to the YAML file which is created by export.packages.

Usage

import.packages(file = "pvm.yml", lib.loc = NULL, ...,
  repos = getOption("repos"), import.recommended = FALSE,
  dryrun = FALSE, verbose = TRUE, strict.version = TRUE,
  Ncpus = getOption("Ncpus", 1L))

Arguments

file

the filename of the YAML file.

lib.loc

character vector giving the library directories where to check and install the packages.

...

Further arguments passed to installed.packages.

repos

character vector, the base URL(s) of the CRAN repositories to use.

import.recommended

logical value. Whether to install those packages whose priority is "recommended".

dryrun

logical value. If TRUE, then import.packages only check the CRAN/MRAN without installing the packages.

verbose

logical value. If TRUE, show more information.

strict.version

logical value. If TRUE, install the package even if there is a later version of the package in the lib.loc.

Ncpus

integer. The number of parallel processes to use for a parallel install of more than one packages.

Examples

## Not run: 
# import packages
import.packages() # import from "pvm.yml"

# Set a local library directory for importing
dir.create(".lib")
.libPaths(".lib")
import.packages()

## End(Not run)

wush978/pvm documentation built on Oct. 30, 2022, 11:22 p.m.