Skip to content

Commit

Permalink
Volkswagen
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Mar 24, 2024
1 parent 0e05668 commit 1f823f0
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/backend-dbplyr__duckdb_connection.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
#'
#' @name backend-duckdb
#' @aliases NULL
#' @examplesIf rlang::is_installed("dbplyr")
# RE2
#' @examplesIf FALSE && rlang::is_installed("dbplyr")
#' library(dplyr, warn.conflicts = FALSE)
#' con <- DBI::dbConnect(duckdb(), path = ":memory:")
#'
Expand Down
3 changes: 2 additions & 1 deletion R/csv.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#' @param ... Passed on to [read.csv()]
#' @return The number of rows in the resulted table, invisibly.
#' @export
#' @examples
# RE2
#' @examplesIf FALSE
#' con <- dbConnect(duckdb())
#'
#' data <- data.frame(a = 1:3, b = letters[1:3])
Expand Down
2 changes: 1 addition & 1 deletion man/backend-duckdb.Rd

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

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

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

11 changes: 11 additions & 0 deletions tests/testthat/test-DBItest.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
skip_on_cran()

if (rlang::is_installed("DBItest")) DBItest::test_all(c(
# RE2
"list_tables",
"list_tables_quote",
"list_fields_object",
"list_objects",
"list_objects_quote",
"list_objects_features",
"remove_table_list",
"remove_table_other_con",
"exists_table_list",

"package_name", # wontfix
"package_dependencies", # wontfix
"reexport", # wontfix
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-multi_statement.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ test_that("statements can be splitted apart correctly", {
})

test_that("export/import database works", {
skip("RE2")
export_location <- file.path(tempdir(), "duckdb_test_export")
if (!file.exists(export_location)) dir.create(export_location)

Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-read.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
test_that("duckdb_read_csv() works as expected", {
skip("RE2")

con <- dbConnect(duckdb())

tf <- tempfile()
Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/test-rel_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -8214,6 +8214,8 @@ test_that("relational mutate(c = 10, d = log10(c)) order-preserving", {
})

test_that("relational mutate(c = NA_character_, d = grepl('.', c)) order-preserving", {
skip("RE2")

# Autogenerated
con <- dbConnect(duckdb())
experimental <- FALSE
Expand Down Expand Up @@ -11254,6 +11256,8 @@ test_that("relational mutate(c = 10, d = log10(c)) order-enforcing", {
})

test_that("relational mutate(c = NA_character_, d = grepl('.', c)) order-enforcing", {
skip("RE2")

# Autogenerated
con <- dbConnect(duckdb())
experimental <- FALSE
Expand Down
6 changes: 6 additions & 0 deletions tests/testthat/test-viewer.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
test_that("rs_list_object_types", {
skip("RE2")

con <- dbConnect(duckdb())
on.exit(dbDisconnect(con, shutdown = TRUE))

Expand All @@ -12,6 +14,8 @@ test_that("rs_list_object_types", {
})

test_that("rs_list_objects", {
skip("RE2")

con <- dbConnect(duckdb())
on.exit(dbDisconnect(con, shutdown = TRUE))

Expand All @@ -30,6 +34,8 @@ test_that("rs_list_objects", {
})

test_that("rs_list_columns", {
skip("RE2")

con <- dbConnect(duckdb())
on.exit(dbDisconnect(con, shutdown = TRUE))

Expand Down

0 comments on commit 1f823f0

Please sign in to comment.