Learn R Programming

replyr (version 0.8.2)

replyr_drop_table_name: Drop a table from a source

Description

Drop a table from a source

Usage

replyr_drop_table_name(dest, name)

Arguments

dest

remote data source

name

name of table to drop

Value

logical TRUE if table was 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_list_tables(my_db)
  replyr_drop_table_name(my_db, 'd')
  replyr_list_tables(my_db)
}

# }

Run the code above in your browser using DataLab