Learn R Programming

replyr (version 0.8.2)

replyr_has_table: check for table

Description

Work around connection v.s. handle issues https://github.com/tidyverse/dplyr/issues/2849

Usage

replyr_has_table(con, name)

Arguments

con

connection

name

character name to check for

Value

TRUE if table present

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')
  print(d)
  replyr_has_table(my_db, 'd')
}

# }

Run the code above in your browser using DataLab