From b05e723cea3d110d8abd95eb197f40fc06b6d5c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Fri, 4 Oct 2024 18:59:42 +0200 Subject: [PATCH 1/2] chore: Document --- man/backend-duckdb.Rd | 2 +- man/duckdb.Rd | 2 +- man/duckdb_read_csv.Rd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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]) From 0d9533a5b2c9dd148e662387f18eff156739c463 Mon Sep 17 00:00:00 2001 From: krlmlr Date: Fri, 4 Oct 2024 17:18:25 +0000 Subject: [PATCH 2/2] chore: Auto-update from GitHub Actions Run: https://github.com/duckdb/duckdb-r/actions/runs/11183918183 --- man/backend-duckdb.Rd | 2 +- man/duckdb.Rd | 2 +- man/duckdb_read_csv.Rd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/man/backend-duckdb.Rd b/man/backend-duckdb.Rd index 9dbaa2d42..8fdd06fe1 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")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (duckdb:::TEST_RE2 && rlang::is_installed("dbplyr")) withAutoprint(\{ # examplesIf} library(dplyr, warn.conflicts = FALSE) con <- DBI::dbConnect(duckdb(), path = ":memory:") diff --git a/man/duckdb.Rd b/man/duckdb.Rd index c6f99d8cb..aff4f8761 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)) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (requireNamespace("adbcdrivermanager", quietly = TRUE)) withAutoprint(\{ # 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 60e9fe19d..bac34441e 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) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (duckdb:::TEST_RE2) withAutoprint(\{ # examplesIf} con <- dbConnect(duckdb()) data <- data.frame(a = 1:3, b = letters[1:3])