R/auto_copy.R

Defines functions duckplyr_auto_copy auto_copy.duckplyr_df

# Generated by 02-duckplyr_df-methods.R
#' @export
auto_copy.duckplyr_df <- function(x, y, copy = FALSE, ...) {
  return(as_duckplyr_df(as.data.frame(y)))

  # dplyr implementation
  as.data.frame(y)
}

duckplyr_auto_copy <- function(x, y, ...) {
  try_fetch(
    {
      x <- as_duckplyr_df(x)
      y <- as_duckplyr_df(y)
    },
    error = function(e) {
      testthat::skip(conditionMessage(e))
    }
  )
  out <- auto_copy(x, y, ...)
  out
}

Try the duckplyr package in your browser

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

duckplyr documentation built on Sept. 12, 2024, 9:36 a.m.