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 b1a85ad commit 507f590
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion R/DBI-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' @inheritSection DBItest::spec_compliance_methods DBI classes and methods
#' @inheritSection DBItest::spec_driver_constructor Construction of the DBIDriver object
#'
#' @examples
#' @examplesIf requireNamespace("RSQLite", quietly = TRUE)
#' RSQLite::SQLite()
#' @seealso
#' Important generics: [dbConnect()], [dbGetQuery()],
Expand Down
2 changes: 1 addition & 1 deletion R/dbGetQueryArrow.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#' @export
#' @examplesIf packageVersion("nanoarrow") >= "0.1.0.2"
#' @examplesIf requireNamespace("nanoarrow", quietly = TRUE) && packageVersion("nanoarrow") >= "0.1.0.2"
#' # Retrieve data as arrow table
#' con <- dbConnect(RSQLite::SQLite(), ":memory:")
#'
Expand Down
2 changes: 1 addition & 1 deletion R/dbReadTableArrow.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' @rdname dbReadTable
#' @export
#' @examplesIf packageVersion("nanoarrow") >= "0.1.0.2"
#' @examplesIf requireNamespace("nanoarrow", quietly = TRUE) && packageVersion("nanoarrow") >= "0.1.0.2"
#' # Read data as Arrow table
#' con <- dbConnect(RSQLite::SQLite(), ":memory:")
#'
Expand Down
2 changes: 1 addition & 1 deletion R/dbSendQueryArrow.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#' @rdname dbSendQuery
#' @examplesIf packageVersion("nanoarrow") >= "0.1.0.2"
#' @examplesIf requireNamespace("nanoarrow", quietly = TRUE) && packageVersion("nanoarrow") >= "0.1.0.2"
#' # Retrieve data as arrow table
#' con <- dbConnect(RSQLite::SQLite(), ":memory:")
#'
Expand Down
2 changes: 2 additions & 0 deletions man/DBI-package.Rd

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

2 changes: 1 addition & 1 deletion man/dbGetQuery.Rd

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

2 changes: 1 addition & 1 deletion man/dbReadTable.Rd

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

2 changes: 1 addition & 1 deletion man/dbSendQuery.Rd

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

9 changes: 8 additions & 1 deletion vignettes/spec.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,17 @@ vignette: >
%\VignetteEncoding{UTF-8}
---

```{r echo = FALSE}
knitr::opts_chunk$set(
echo = FALSE,
eval = requireNamespace("magrittr", quietly = TRUE) && requireNamespace("xml2", quietly = TRUE)
)
```


```{r echo = FALSE}
library(magrittr)
library(xml2)
knitr::opts_chunk$set(echo = FALSE)
r <- rprojroot::is_r_package$make_fix_file()
```

Expand Down

0 comments on commit 507f590

Please sign in to comment.