- using R version 4.5.2 (2025-10-31)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-10) 14.3.0
GNU Fortran (Debian 14.3.0-10) 14.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘klassR/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘klassR’ version ‘1.0.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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘klassR’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/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 ... [6s/7s] OK
- checking Rd files ... [0s/1s] 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [1s/66s] ERROR
Running examples in ‘klassR-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: update_klass_node
> ### Title: Given a node and a graph, find the node at the end of a sequence
> ### of changes.
> ### Aliases: update_klass_node
>
> ### ** Examples
>
>
> # Build a graph directed towards the most recent codes.
> library(klassR)
> klass_131 <- klass_graph(131)
Connection failed with error code 502
Error: Argument 'txt' must be a JSON string, URL or file.
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [8s/214s] ERROR
Running ‘testthat.R’ [8s/214s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(klassR)
>
> test_check("klassR")
Connection failed with error code 502
Saving _problems/test-UpdateKlass-12.R
Connection failed with error code 502
Saving _problems/test-UpdateKlass-54.R
Connection failed with error code 502
Saving _problems/test-UpdateKlass-124.R
Connection failed with error code 404
Connection failed with error code 404
Connection failed with error code 404
Saving _problems/test_ListKlass-15.R
Connection failed with error code 404
Saving _problems/test_ListKlass-18.R
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 89 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-UpdateKlass.R:10:3'): update_klass gir riktig resultat ved enkle endringer ──
Error: Argument 'txt' must be a JSON string, URL or file.
Backtrace:
▆
1. └─jsonlite::fromJSON(klassR:::GetUrl2(changes_url), flatten = TRUE) at test-UpdateKlass.R:10:3
2. └─jsonlite:::stop("Argument 'txt' must be a JSON string, URL or file.")
── Error ('test-UpdateKlass.R:52:3'): update_klass gir riktig resultat ved sammenslåtte koder ──
Error: Argument 'txt' must be a JSON string, URL or file.
Backtrace:
▆
1. └─jsonlite::fromJSON(klassR:::GetUrl2(changes_url), flatten = TRUE) at test-UpdateKlass.R:52:3
2. └─jsonlite:::stop("Argument 'txt' must be a JSON string, URL or file.")
── Error ('test-UpdateKlass.R:122:3'): update_klass gir riktig resultat ved delte koder ──
Error: Argument 'txt' must be a JSON string, URL or file.
Backtrace:
▆
1. └─jsonlite::fromJSON(klassR:::GetUrl2(changes_url), flatten = TRUE) at test-UpdateKlass.R:122:3
2. └─jsonlite:::stop("Argument 'txt' must be a JSON string, URL or file.")
── Failure ('test_ListKlass.R:15:3'): list_klass returns a list ────────────────
Expected `nrow(klass_table)` > 1.
Actual comparison: 0.0 <= 1.0
Difference: -1.0 <= 0
── Failure ('test_ListKlass.R:18:3'): list_klass returns a list ────────────────
Expected `nrow(codelist_table)` > `nrow(klass_table)`.
Actual comparison: 0 <= 0
Difference: 0 <= 0
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 89 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [6s/9s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs