File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ # https://github.com/r-lib/testthat/issues/2236
2+ skip_on_dev_version <- function () {
3+ version <- asNamespace(testing_package())[[" .__NAMESPACE__." ]][[" spec" ]][[
4+ " version"
5+ ]] | >
6+ package_version() | >
7+ unclass() | >
8+ getElement(1L )
9+
10+ if (length(version ) < 3 || tail(version , 1L ) < 9000 ) {
11+ invisible ()
12+ } else {
13+ skip(" Skip on development versions." )
14+ }
15+ }
16+
17+ # Skip on CRAN, but run on R-universe
18+ skip_on_cran_except_r_universe <- function () {
19+ if (! nzchar(Sys.getenv(" MY_UNIVERSE" ))) {
20+ skip_on_cran()
21+ }
22+ }
Original file line number Diff line number Diff line change 1+ test_that(" Install DuckDB extension" , {
2+ skip_on_dev_version()
3+ skip_on_cran_except_r_universe()
4+
5+ expect_no_error(sql(" INSTALL icu" ))
6+ })
You can’t perform that action at this time.
0 commit comments