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

Description Usage Arguments Value Examples

View source: R/copyToFrom.R

Description

Bring remote data back as a local data frame tbl.

Usage

1
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

1
2
3
4
5
6
7
8
if (requireNamespace("RSQLite", quietly = TRUE)) {
  my_db <- DBI::dbConnect(RSQLite::SQLite(), ":memory:")
  RSQLite::initExtension(my_db)
  d <- replyr_copy_to(my_db,data.frame(x=c(1,2)),'d')
  d2 <- replyr_copy_from(d)
  print(d2)
  DBI::dbDisconnect(my_db)
}

WinVector/replyr documentation built on Oct. 22, 2020, 8:07 p.m.