Nothing
.onLoad <- function(...) {
s3_register("dbplyr::dbplyr_edition", "duckdb_connection")
s3_register("dbplyr::db_connection_describe", "duckdb_connection")
s3_register("dbplyr::sql_translation", "duckdb_connection")
s3_register("dbplyr::sql_expr_matches", "duckdb_connection")
s3_register("dbplyr::sql_escape_date", "duckdb_connection")
s3_register("dbplyr::sql_escape_datetime", "duckdb_connection")
s3_register("dplyr::tbl", "duckdb_connection")
s3_register("dplyr::slice_sample", "tbl_duckdb_connection")
s3_register("adbcdrivermanager::adbc_database_init", "duckdb_driver_adbc")
s3_register("adbcdrivermanager::adbc_connection_init", "duckdb_database_adbc")
s3_register(
"adbcdrivermanager::adbc_statement_init",
"duckdb_connection_adbc"
)
# Catches a dbplyr that loads after this package.
# Armed here rather than in `.onAttach()` because `.onLoad()` runs exactly once per namespace load,
# whereas a detach/reattach cycle would stack a second copy of the hook.
setHook(packageEvent("dbplyr", "onLoad"), function(...) {
warn_if_dbplyr_too_old()
})
if (requireNamespace("rlang", quietly = TRUE)) {
is_interactive <<- rlang::is_interactive
abort <<- rlang::abort
rapi_error <<- rapi_error_rlang
check_dots_empty0 <<- rlang::check_dots_empty0
inform <<- rlang::inform
arg_match <<- rlang::arg_match
} else {
rethrow_restore()
# `rapi_error` already is `rapi_error_base`, and without `try_fetch()` there is nothing to rethrow through --
# the condition reaches the caller as the base half built it, fields and all.
}
invisible()
}
.onAttach <- function(...) {
# The other order: dbplyr was already loaded when this package was attached,
# so the `onLoad` hook armed above will never fire for it.
warn_if_dbplyr_too_old()
invisible()
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.