f_load_packages {rfriend} | R Documentation |
Install and Load Multiple R Packages
Description
Checks if the specified packages are installed. If not, it installs them and then loads them into the global R session.
Usage
f_load_packages(...)
Arguments
... |
Unquoted or quoted names of packages to be installed and loaded. These should be valid package names available on CRAN. |
Details
The function takes a list or vector indicating package names, installs any that are missing, and loads all specified packages into the global environment of the R session. It uses requireNamespace()
to check for installation and library()
to load the packages.
Value
None. The function is called for its side effects of installing and loading packages.
Author(s)
Sander H. van Delden plantmind@proton.me
[Package rfriend version 1.0.0 Index]