libraries: Loading many libraries at once

View source: R/functions.r

librariesR Documentation

Loading many libraries at once

Description

This function tries to load more than one package at once. If any of these packages is not installed it tries to istall them and load them afterward.

Usage

libraries(x, ...)

Arguments

x

character vector. Name(s) of the libraries that are loaded/installed.

...

Arguments passed to require and install.packages

Value

Returns nothing but gives a warning if it cannot load/install a library/package

Author(s)

Simon Frey

See Also

require, library, install.packages

Examples

    # loading xts 
    libraries("xts")
    libraries(c("xts","shiny"))

freysimon/TigeR documentation built on Feb. 3, 2024, 2:32 a.m.