View source: R/fload_packages.R
f_load_packages | R Documentation |
Checks if the specified packages are installed. If not, it installs them and then loads them into the global R session.
f_load_packages(...)
... |
Unquoted or quoted names of packages to be installed and loaded. These should be valid package names available on CRAN. |
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.
None. The function is called for its side effects of installing and loading packages.
Sander H. van Delden plantmind@proton.me
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.