R/zzz.R

Defines functions .onLoad

# nocov start
.onLoad <- function(...) {
  # lazy S3method() directive for this case only works in 4.3 and later
  s3_register("dplyr::filter", "tbl_lazy")

  methods::setOldClass(c("ident_q", "ident", "character"), ident_q())
  methods::setOldClass(c("ident", "character"), ident())
  methods::setOldClass(c("sql", "character"), sql())

  base_scalar$`%>%` <- magrittr::`%>%`
}

# Silence R CMD check note:
# ** checking whether the namespace can be loaded with stated dependencies ... NOTE
# Warning in .undefineMethod("initialize", Class, classWhere) :
#   no generic function 'initialize' found
#
# I'm not sure why this is necessary, but I suspect it's due to the use of
# setOldClass onLoad
#' @importFrom methods initialize
NULL

# nocov end

Try the dbplyr package in your browser

Any scripts or data that you put into this service are public.

dbplyr documentation built on May 29, 2024, 6:19 a.m.