* using log directory 'd:/Rcompile/CRANpkg/local/4.5/klassR.Rcheck' * using R Under development (unstable) (2024-05-07 r86527 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'klassR/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'klassR' version '0.2.3' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'klassR' can be installed ... OK * checking installed package size ... OK * checking package 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] 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 ... [3s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [11s] ERROR Running examples in 'klassR-Ex.R' failed The error most likely occurred in: > ### Name: ApplyKlass > ### Title: Match and convert a classification > ### Aliases: ApplyKlass > > ### ** Examples > > data(klassdata) > kommune_names <- ApplyKlass(x = klassdata$kommune, klass = 131, language = "en", format=FALSE) Timeout was reached: [data.ssb.no] Resolving timed out after 10007 milliseconds Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [2s] ERROR Running 'testthat.R' [2s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(klassR) > > test_check("klassR") Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no Could not resolve host: data.ssb.no [ FAIL 16 | WARN 0 | SKIP 0 | PASS 1 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_ApplyKlass.R:4:3'): ApplyKlass returns correct names for numeric codes ── Error in `stop_quietly()`: Backtrace: ▆ 1. └─klassR::ApplyKlass(klassdata$kommune, klass = 131, date = "2015-01-01") at test_ApplyKlass.R:4:3 2. └─klassR::GetKlass(...) 3. └─klassR:::stop_quietly() ── Error ('test_ApplyKlass.R:12:3'): ApplyKlass returns correct names for character codes ── Error in `stop_quietly()`: Backtrace: ▆ 1. └─klassR::ApplyKlass(c("INNL", "UTL", "B_FIN"), klass = 39, date = "2019-01-01") at test_ApplyKlass.R:12:3 2. └─klassR::GetKlass(...) 3. └─klassR:::stop_quietly() ── Error ('test_ApplyKlass.R:20:3'): ApplyKlass returns correct language ─────── Error in `stop_quietly()`: Backtrace: ▆ 1. └─klassR::ApplyKlass(...) at test_ApplyKlass.R:20:3 2. └─klassR::GetKlass(...) 3. └─klassR:::stop_quietly() ── Error ('test_ApplyKlass.R:35:10'): ApplyKlass returns correctly for character codes ── Error in `stop_quietly()`: Backtrace: ▆ 1. └─klassR::ApplyKlass(sektor, 39, date = "2020-01-01") at test_ApplyKlass.R:35:10 2. └─klassR::GetKlass(...) 3. └─klassR:::stop_quietly() ── Error ('test_ApplyKlass.R:41:3'): Check levelCheck for numerical codes ────── Error in `stop_quietly()`: Backtrace: ▆ 1. └─klassR::GetKlass(7, date = "2020-01-01") at test_ApplyKlass.R:41:3 2. └─klassR:::stop_quietly() ── Error ('test_ApplyKlass.R:51:3'): Check levelCheck for character codes ────── Error in `stop_quietly()`: Backtrace: ▆ 1. └─klassR::GetKlass(39, date = "2020-01-01") at test_ApplyKlass.R:51:3 2. └─klassR:::stop_quietly() ── Error ('test_ApplyKlass.R:61:3'): ApplyKlass can return a variant classification ── Error in `stop_quietly()`: Backtrace: ▆ 1. └─klassR::ApplyKlass(dat, klass = 6, variant = 1616, date = "2021-01-02") at test_ApplyKlass.R:61:3 2. └─klassR::GetKlass(...) 3. └─klassR:::get_variant_name(variant) 4. └─klassR:::stop_quietly() ── Error ('test_ApplyKlass.R:77:3'): ApplyKlass works for variant classification with Norwegian characters in the variant name ── Error in `stop_quietly()`: Backtrace: ▆ 1. └─klassR::ApplyKlass(...) at test_ApplyKlass.R:77:3 2. └─klassR::GetKlass(...) 3. └─klassR:::get_variant_name(variant) 4. └─klassR:::stop_quietly() ── Error ('test_GetKlass.R:4:3'): GetKlass returns a classification ──────────── Error in `stop_quietly()`: Backtrace: ▆ 1. └─klassR::GetKlass(klass = 131, date = "2015-01-01") at test_GetKlass.R:4:3 2. └─klassR:::stop_quietly() ── Error ('test_GetKlass.R:10:3'): GetKlass returns a classification with Norwegian letters ── Error in `stop_quietly()`: Backtrace: ▆ 1. └─klassR::GetKlass(klass = 131, date = "2015-01-01") at test_GetKlass.R:10:3 2. └─klassR:::stop_quietly() ── Error ('test_GetKlass.R:16:3'): GetKlass returns a correspondence table ───── Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: data.ssb.no Backtrace: ▆ 1. └─klassR::GetKlass(klass = 104, correspond = 131, date = "2015-01-01") at test_GetKlass.R:16:3 2. └─klassR:::GetUrl2(url, check = FALSE) 3. └─httr::GET(url = url) 4. └─httr:::request_perform(req, hu$handle$handle) 5. ├─httr:::request_fetch(req$output, req$url, handle) 6. └─httr:::request_fetch.write_memory(req$output, req$url, handle) 7. └─curl::curl_fetch_memory(url, handle = handle) ── Error ('test_GetKlass.R:23:3'): GetKlass returns a correspondence table in both directions ── Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: data.ssb.no Backtrace: ▆ 1. └─klassR::GetKlass(klass = 104, correspond = 131, date = "2020-02-01") at test_GetKlass.R:23:3 2. └─klassR:::GetUrl2(url, check = FALSE) 3. └─httr::GET(url = url) 4. └─httr:::request_perform(req, hu$handle$handle) 5. ├─httr:::request_fetch(req$output, req$url, handle) 6. └─httr:::request_fetch.write_memory(req$output, req$url, handle) 7. └─curl::curl_fetch_memory(url, handle = handle) ── Error ('test_GetKlass.R:33:3'): GetKlass returns a valid variant ──────────── Error in `stop_quietly()`: Backtrace: ▆ 1. └─klassR::GetKlass(klass = 6, variant = 1616, date = "2021-01-02") at test_GetKlass.R:33:3 2. └─klassR:::get_variant_name(variant) 3. └─klassR:::stop_quietly() ── Error ('test_GetKlass.R:40:3'): GetKlass returns notes when requested ─────── Error in `stop_quietly()`: Backtrace: ▆ 1. └─klassR::GetKlass(277, notes = TRUE, date = "2023-01-12") at test_GetKlass.R:40:3 2. └─klassR:::stop_quietly() ── Error ('test_GetKlass.R:48:3'): GetKlass returns a future classification ──── Error in `stop_quietly()`: Backtrace: ▆ 1. ├─testthat::expect_message(classdata <- GetKlass(104, date = "2050-01-01")) at test_GetKlass.R:48:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─klassR::GetKlass(104, date = "2050-01-01") 8. └─klassR:::stop_quietly() ── Error ('test_GetKlass.R:54:3'): GetKlass returns a correspondence table using ID ── Error in `stop_quietly()`: Backtrace: ▆ 1. ├─testthat::expect_message(...) at test_GetKlass.R:54:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─klassR::GetKlass(correspondID = 1111, date = "2023-01-12") 8. └─klassR:::stop_quietly() [ FAIL 16 | WARN 0 | SKIP 0 | PASS 1 ] Error: Test failures Execution halted * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 2 ERRORs