Check if a package is installed. If not, throw an error message

check_installed_package(package_name, check = FALSE)

Arguments

package_name

the name of the package (quoted)

check

the function should work as a boolean operator

Value

Boolean value whether package is installed.

Examples

check_installed_package("dplyr")