check_if_package_installed {tidyfinance}R Documentation

Check If a Package is Installed

Description

Checks if a specified package is installed and available for use. If the package is not installed, the function stops execution and prompts the user to install the package.

Usage

check_if_package_installed(package, type)

Arguments

package

The name of the package to check.

type

The type for which the package needs to be available.

Value

Invisible TRUE if the package is installed; otherwise, it stops execution with an error message advising the installation of the package. Since the function is designed to stop if the package is not found, it does not explicitly return a value upon successful completion.


[Package tidyfinance version 0.1.0 Index]