
Check if a package is installed and load it
check_and_load_package.RdThis function checks if a specified package is installed in the R environment. If the package is not installed, it will be automatically installed. After installation (if necessary), the package is loaded into the session.