diff --git a/man/backend-duckdb.Rd b/man/backend-duckdb.Rd index 8fdd06fe1..9dbaa2d42 100644 --- a/man/backend-duckdb.Rd +++ b/man/backend-duckdb.Rd @@ -49,7 +49,7 @@ Use \code{simulate_duckdb()} with \code{lazy_frame()} to see simulated SQL without opening a DuckDB connection. } \examples{ -\dontshow{if (duckdb:::TEST_RE2 && rlang::is_installed("dbplyr")) withAutoprint(\{ # examplesIf} +\dontshow{if (duckdb:::TEST_RE2 && rlang::is_installed("dbplyr")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} library(dplyr, warn.conflicts = FALSE) con <- DBI::dbConnect(duckdb(), path = ":memory:") diff --git a/man/duckdb.Rd b/man/duckdb.Rd index aff4f8761..c6f99d8cb 100644 --- a/man/duckdb.Rd +++ b/man/duckdb.Rd @@ -101,7 +101,7 @@ The associated DuckDB database instance is shut down automatically, it is no longer necessary to set \code{shutdown = TRUE} or to call \code{duckdb_shutdown()}. } \examples{ -\dontshow{if (requireNamespace("adbcdrivermanager", quietly = TRUE)) withAutoprint(\{ # examplesIf} +\dontshow{if (requireNamespace("adbcdrivermanager", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} library(adbcdrivermanager) with_adbc(db <- adbc_database_init(duckdb_adbc()), { as.data.frame(read_adbc(db, "SELECT 1 as one;")) diff --git a/man/duckdb_read_csv.Rd b/man/duckdb_read_csv.Rd index bac34441e..60e9fe19d 100644 --- a/man/duckdb_read_csv.Rd +++ b/man/duckdb_read_csv.Rd @@ -55,7 +55,7 @@ Directly reads a CSV file into DuckDB, tries to detect and create the correct sc This usually is much faster than reading the data into R and writing it to DuckDB. } \examples{ -\dontshow{if (duckdb:::TEST_RE2) withAutoprint(\{ # examplesIf} +\dontshow{if (duckdb:::TEST_RE2) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} con <- dbConnect(duckdb()) data <- data.frame(a = 1:3, b = letters[1:3])