depends: Loading packages

View source: R/package_tools.R

dependsR Documentation

Loading packages

Description

Function for loading and, if necessary, installing packages

Usage

depends(packages)

Arguments

packages

Character vector of packages to install from CRAN or GitHub

Details

The function looks up required packages and loads the ones already installed, while installing and loading for packages not installed. For CRAN packages the package name is required as argument, for GitHub username/repo are required as argument.

Value

Loads and, if necessary, first installs packages

Examples

## Not run: 
depends("manypkgs")

## End(Not run)

globalgov/qCreate documentation built on April 27, 2023, 3:27 a.m.