- using R version 4.4.3 (2025-02-28 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 13.3.0
GNU Fortran (GCC) 13.3.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 '1.0.4'
- 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
See the install log for details.
- 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 ... [5s] 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 ... [7s] ERROR
Running examples in 'klassR-Ex.R' failed
The error most likely occurred in:
> ### Name: get_family
> ### Title: Identify corresponding family from a classification number
> ### Aliases: get_family GetFamily
>
> ### ** Examples
>
> get_family(classification = 7)
Error in data.frame(klass_name = dt$name, klass_nr = nums, klass_family = i, :
arguments imply differing number of rows: 0, 1
Calls: get_family -> list_klass -> data.frame
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [151s] ERROR
Running 'testthat.R' [151s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(klassR)
>
> test_check("klassR")
Connection failed with error code 404
Saving _problems/test_ListKlass-8.R
Saving _problems/test_ListKlass-14.R
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 91 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_ListKlass.R:6:3'): ListKlass returns a warning but still runs ──
Error in `data.frame(klass_name = dt$name, klass_nr = nums, klass_family = i, klass_type = dt$classificationType)`: arguments imply differing number of rows: 0, 1
Backtrace:
▆
1. ├─testthat::expect_warning(klass_table <- ListKlass()) at test_ListKlass.R:6: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:::ListKlass()
8. └─klassR::list_klass(codelists = codelists, language = language)
9. └─base::data.frame(...)
── Error ('test_ListKlass.R:14:3'): list_klass returns a list ──────────────────
Error in `data.frame(klass_name = dt$name, klass_nr = nums, klass_family = i, klass_type = dt$classificationType)`: arguments imply differing number of rows: 0, 1
Backtrace:
▆
1. └─klassR::list_klass() at test_ListKlass.R:14:3
2. └─base::data.frame(...)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 91 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [18s] OK
- checking HTML version of manual ... [8s] OK
- DONE
Status: 2 ERRORs