Skip to content

Commit

Permalink
test: Fix checks without suggested packages
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Nov 8, 2023
1 parent 6968873 commit 747b59e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
21 changes: 20 additions & 1 deletion R/context.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,26 @@
#' @rdname context
#' @importFrom methods is new
#' @export
#' @example examples/make_context.R
#' @examplesIf requireNamespace("RSQLite", quietly = TRUE)
#' make_context(
#' new(
#' "DBIConnector",
#' .drv = RSQLite::SQLite(),
#' .conn_args = list(dbname = tempfile("DBItest", fileext = ".sqlite"))
#' ),
#' tweaks = tweaks(
#' constructor_relax_args = TRUE,
#' placeholder_pattern = c("?", "$1", "$name", ":name"),
#' date_cast = function(x) paste0("'", x, "'"),
#' time_cast = function(x) paste0("'", x, "'"),
#' timestamp_cast = function(x) paste0("'", x, "'"),
#' logical_return = function(x) as.integer(x),
#' date_typed = FALSE,
#' time_typed = FALSE,
#' timestamp_typed = FALSE
#' ),
#' default_skip = c("roundtrip_date", "roundtrip_timestamp")
#' )
make_context <- function(drv, connect_args = NULL, set_as_default = TRUE,
tweaks = NULL, name = NULL, default_skip = NULL) {
if (is.null(drv)) {
Expand Down
19 changes: 0 additions & 19 deletions examples/make_context.R

This file was deleted.

2 changes: 2 additions & 0 deletions man/context.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 747b59e

Please sign in to comment.