Description Usage Arguments Value Examples
Work around connection v.s. handle issues https://github.com/tidyverse/dplyr/issues/2849
1 | replyr_has_table(con, name)
|
con |
connection |
name |
character name to check for |
TRUE if table present
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')
print(d)
print(replyr_has_table(my_db, 'd'))
DBI::dbDisconnect(my_db)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.