Learn R Programming

replyr (version 0.8.2)

replyr_copy_from: Bring remote data back as a local data frame tbl.

Description

Bring remote data back as a local data frame tbl.

Usage

replyr_copy_from(d, maxrow = 1e+06)

Arguments

d

remote dplyr data item

maxrow

max rows to allow (stop otherwise, set to NULL to allow any size).

Value

local tbl.

Examples

Run this code
# NOT RUN {

if (requireNamespace("RSQLite", quietly = TRUE)) {
  my_db <- dplyr::src_sqlite(":memory:", create = TRUE)
  d <- replyr_copy_to(my_db,data.frame(x=c(1,2)),'d')
  d2 <- replyr_copy_from(d)
  print(d2)
}

# }

Run the code above in your browser using DataLab