Checks if the specified packages are installed. If not, it installs them and then loads them into the global R session.
f_load_packages(...)
None. The function is called for its side effects of installing and loading packages.
Unquoted or quoted names of packages to be installed and loaded. These should be valid package names available on CRAN.
Sander H. van Delden plantmind@proton.me
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.