Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Author(s)

Kevin Wright

References

None

Examples

## Not run: 
libs(dplyr,reshape2)

## End(Not run)

agridat

Agricultural Datasets

v1.18
CC BY-SA 4.0
Authors
Kevin Wright [aut, cre] (<https://orcid.org/0000-0002-0617-8673>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.