In dplyr 0.7.0, a number of database and SQL functions moved from dplyr to dbplyr. The generic functions stayed in dplyr (since there is no easy way to conditionally import a generic from different packages), but many other SQL and database helper functions moved. If you have written a backend, these functions generate the code you need to work with both dplyr 0.5.0 dplyr 0.7.0.
1 2 3 | check_dbplyr()
wrap_dbplyr_obj(obj_name)
|
1 2 3 4 | if (requireNamespace("dbplyr", quietly = TRUE)) {
wrap_dbplyr_obj("build_sql")
wrap_dbplyr_obj("base_agg")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.