- using R version 4.0.4 Patched (2021-02-17 r80040)
- using platform: x86_64-pc-linux-gnu (64-bit)
- using session charset: UTF-8
- checking for file ‘bcmaps/DESCRIPTION’ ... OK
- this is package ‘bcmaps’ version ‘1.0.1’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘bcmaps’ can be installed ... OK
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [10s/13s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking R/sysdata.rda ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [5s/5s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [12s/27s] ERROR
Running ‘testthat.R’ [12s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(bcmaps)
Loading required package: sf
Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1
>
> test_check("bcmaps")
══ Skipped tests ═══════════════════════════════════════════════════════════════
● On CRAN (15)
══ Failed tests ════════════════════════════════════════════════════════════════
── Error (test-cache-utils.R:5:3): the cache is deleted ────────────────────────
Error: Timeout was reached: [catalogue.data.gov.bc.ca] Connection timed out after 10001 milliseconds
Backtrace:
█
1. ├─testthat::expect_is(airzones(ask = FALSE, force = TRUE), "sf") test-cache-utils.R:5:2
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─bcmaps::airzones(ask = FALSE, force = TRUE)
5. └─bcmaps::get_layer("airzones", class = class, ask = ask, force = force)
6. └─bcmaps:::get_catalogue_data(...)
7. ├─bcdata::bcdc_get_data(recordid, resourceid)
8. └─bcdata:::bcdc_get_data.character(recordid, resourceid)
9. └─bcdata::bcdc_get_record(x)
10. └─cli$get(query = list(id = id))
11. └─private$make_request(rr)
12. └─crul:::crul_fetch(opts)
13. └─curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
[ FAIL 1 | WARN 0 | SKIP 15 | PASS 86 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking re-building of vignette outputs ... [1s/2s] OK
- checking PDF version of manual ... OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR