requiredPackages: requiredPackages

View source: R/utils.R

requiredPackagesR Documentation

requiredPackages

Description

Installs (default if required) and loads specified packages.

Usage

requiredPackages(
  packages,
  installPackages = FALSE,
  lib = .libPaths()[1],
  repos = "http://cran.us.r-project.org"
)

Arguments

packages

A list of packages

installPackages

TRUE/FALSE Install package if not installed

lib

character vector giving the library directories where to install the packages. Recycled as needed. If missing, defaults to the first element of .libPaths()

repos

character vector, the base URL(s) of the repositories to use, e.g., the URL of a CRAN mirror such as "https://cloud.r-project.org". For more details on supported URL schemes see url. Can be NULL to install from local files, directories or URLs: this will be inferred by extension from pkgs if of length one.


psychReport documentation built on Sept. 9, 2022, 5:08 p.m.