As of peekbankr 0.4, data are retrieved from the versioned peekbank dataset on Redivis rather than a MySQL server. `connect_to_peekbank()` now returns a lightweight handle that pins a database version (Redivis dataset version); it no longer opens a DBI connection. Existing code that passes the result via the `connection` argument of the `get_` functions continues to work.
connect_to_peekbank(
db_version = "current",
db_args = NULL,
compress = TRUE,
host = NULL,
port = NULL,
ssl = "auto"
)String of the name of database version to use: "current" (the default; resolves to the latest Redivis version), a Peekbank release name (e.g. "2025.1"), or a Redivis version tag (e.g. "v1.2")
Deprecated, ignored (retained for backwards compatibility)
Deprecated, ignored
Deprecated, ignored
Deprecated, ignored
Deprecated, ignored
A `peekbank_connection` handle pinning the resolved version
if (FALSE) { # \dontrun{
con <- connect_to_peekbank(db_version = "current")
} # }