powered by
Checking if needed package is installed
check_if_installed( package, reason = "for this function to work", stop = TRUE, ... )
A string naming the package, whose installation needs to be checked in any of the libraries
A phrase describing why the package is needed. The default is a generic description.
Logical that decides whether the function should stop if the needed package is not installed.
Currently ignored
# NOT RUN { check_if_installed("inexistent_package") # } # NOT RUN { # }
Run the code above in your browser using DataLab