Learn R Programming

insight (version 0.14.1)

check_if_installed: Checking if needed package is installed

Description

Checking if needed package is installed

Usage

check_if_installed(
  package,
  reason = "for this function to work",
  stop = TRUE,
  ...
)

Arguments

package

A string naming the package, whose installation needs to be checked in any of the libraries

reason

A phrase describing why the package is needed. The default is a generic description.

stop

Logical that decides whether the function should stop if the needed package is not installed.

...

Currently ignored

Examples

Run this code
# NOT RUN {
  check_if_installed("inexistent_package")
# }
# NOT RUN {

# }

Run the code above in your browser using DataLab