dot-require_driver: Check if a database driver package is available

.require_driverR Documentation

Check if a database driver package is available

Description

Internal helper to check if a required database driver package is installed. Throws an informative error if the package is missing.

Usage

.require_driver(driver_name, package_name, install_command = NULL)

Arguments

driver_name

Character. Human-readable name of the database (e.g., "PostgreSQL", "MySQL")

package_name

Character. Name of the R package required (e.g., "RPostgres", "RMariaDB")

install_command

Character. Optional custom install command. Defaults to install.packages()

Value

NULL (invisible). Throws error if package not available.


framework documentation built on Feb. 18, 2026, 1:07 a.m.