libraries: Load and Attach Multiple Packages

View source: R/libraries.R

librariesR Documentation

Load and Attach Multiple Packages

Description

This function loads and attaches multiple add-on packages at once.

Usage

libraries(..., install = FALSE, quiet = TRUE, check = TRUE, output = TRUE)

Arguments

...

the names of the packages to be loaded, given as names (e.g., misty, lavaan, lme4), or literal character strings (e.g., "misty", "lavaan", "lme4"), or character vector (e.g., c("misty", "lavaan", "lme4")).

install

logical: if TRUE, missing packages and dependencies are installed.

quiet

logical: if TRUE (default), startup messages when loading package are disabled.

check

logical: if TRUE, argument specification is checked.

output

logical: logical: if TRUE, output is shown on the console.

Author(s)

Takuya Yanagida takuya.yanagida@univie.ac.at

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.

See Also

library, require

Examples

## Not run: 
# Example 1: Load packages using the names of the packages
misty::libraries(misty, lme4, lmerTest)

# Example 2: Load packages using literal character strings
misty::libraries("misty", "lme4", "lmerTest")

# Example 3: Load packages using a character vector
misty::libraries(c("misty", "lme4", "lmerTest"))

# Example 4: Check packages, i.e., TRUE = all depends/imports/suggests installed
misty::libraries(misty, lme4, lmerTest, output = FALSE)$result$restab

# Example 5: Depends, FALSE = not installed, TRUE = installed
misty::libraries(misty, lme4, lmerTest, output = FALSE)$result$depends

# Example 6: Imports, FALSE = not installed, TRUE = installed
misty::libraries(misty, lme4, lmerTest, output = FALSE)$result$imports

# Example 6: Suggests, FALSE = not installed, TRUE = installed
misty::libraries(misty, lme4, lmerTest, output = FALSE)$result$suggests

## End(Not run)

misty documentation built on Oct. 24, 2024, 5:10 p.m.

Related to libraries in misty...