Learn R Programming

agridat (version 1.18)

libs: Load multiple packages and install if needed

The 'agridat' package uses dozens of packages in the examples for each dataset. The 'libs' function provides a simple way to load multiple packages at once, and can install any missing packages on-the-fly.

This is very similar to the `pacman::p_load` function.

Description

Load multiple packages and install if needed

The 'agridat' package uses dozens of packages in the examples for each dataset. The 'libs' function provides a simple way to load multiple packages at once, and can install any missing packages on-the-fly.

This is very similar to the `pacman::p_load` function.

Usage

libs(...)

Arguments

...

Comma-separated unquoted package names

Value

None

References

None

Examples

Run this code
# NOT RUN {
libs(dplyr,reshape2)
# }

Run the code above in your browser using DataLab