| .require_driver | R Documentation |
Internal helper to check if a required database driver package is installed. Throws an informative error if the package is missing.
.require_driver(driver_name, package_name, install_command = NULL)
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() |
NULL (invisible). Throws error if package not available.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.