This checks that a package is installed with minimal side effects. If installed, the package will be loaded but not attached.
is_installed(pkg)
The name of a package.
TRUE
if the package is installed, FALSE
otherwise.
# NOT RUN {
is_installed("utils")
is_installed("ggplot5")
# }
Run the code above in your browser using DataLab