- using R Under development (unstable) (2024-12-01 r87412)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 19.1.4 (1)
Debian flang-new version 19.1.4 (1)
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘dtreg/DESCRIPTION’ ... OK
- this is package ‘dtreg’ version ‘1.0.0’
- 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 ‘dtreg’ can be installed ... OK
See the install log for details.
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s/1s] 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/1s] OK
- checking loading without being on the library search path ... [0s/1s] OK
- checking whether startup messages can be suppressed ... [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 ... [4s/7s] OK
- checking Rd files ... [0s/0s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/2s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [4s/10s] ERROR
Running ‘testthat.R’ [3s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(dtreg)
>
> test_check("dtreg")
[ FAIL 6 | WARN 0 | SKIP 0 | PASS 27 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-extract_orkg.R:2:3'): extract_orkg gives the specified template ──
<httr2_http_404/httr2_http/httr2_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 404 Not Found.
Backtrace:
▆
1. └─dtreg:::extract_orkg("https://incubating.orkg.org/template/R937648") at test-extract_orkg.R:2:3
2. └─dtreg (local) extractor_function(resource_id)
3. └─dtreg:::request_dtr(...)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_abort(resp, req, body, call = error_call)
7. └─rlang::abort(...)
── Error ('test-extract_orkg.R:18:3'): extract_orkg extracts properties correctly ──
<httr2_http_404/httr2_http/httr2_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 404 Not Found.
Backtrace:
▆
1. └─dtreg:::extract_orkg("https://incubating.orkg.org/template/R855534") at test-extract_orkg.R:18:3
2. └─dtreg (local) extractor_function(resource_id)
3. └─dtreg:::request_dtr(...)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_abort(resp, req, body, call = error_call)
7. └─rlang::abort(...)
── Error ('test-extract_orkg.R:25:3'): extract_orkg extracts nested templates ──
<httr2_http_404/httr2_http/httr2_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 404 Not Found.
Backtrace:
▆
1. └─dtreg:::extract_orkg("https://incubating.orkg.org/template/R903086") at test-extract_orkg.R:25:3
2. └─dtreg (local) extractor_function(resource_id)
3. └─dtreg:::request_dtr(...)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_abort(resp, req, body, call = error_call)
7. └─rlang::abort(...)
── Error ('test-load_datatype.R:14:3'): load_datatype loads ORKG template properties correctly ──
<httr2_http_404/httr2_http/httr2_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 404 Not Found.
Backtrace:
▆
1. └─dtreg::load_datatype("https://incubating.orkg.org/template/R855534") at test-load_datatype.R:14:3
2. └─dtreg:::write_r6_classes(datatype_id)
3. └─selected_class$new()$get_schema_info(datatype_id)
4. └─dtreg:::extract_orkg(datatype_id)
5. └─dtreg (local) extractor_function(resource_id)
6. └─dtreg:::request_dtr(...)
7. └─httr2::req_perform(req)
8. └─httr2:::handle_resp(req, resp, error_call = error_call)
9. └─httr2:::resp_abort(resp, req, body, call = error_call)
10. └─rlang::abort(...)
── Error ('test-request_dtr.R:7:3'): request_dtr gets info from an orkg template ──
<httr2_http_404/httr2_http/httr2_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 404 Not Found.
Backtrace:
▆
1. └─dtreg:::request_dtr("https://incubating.orkg.org//api/templates/R855534") at test-request_dtr.R:7:3
2. └─httr2::req_perform(req)
3. └─httr2:::handle_resp(req, resp, error_call = error_call)
4. └─httr2:::resp_abort(resp, req, body, call = error_call)
5. └─rlang::abort(...)
── Error ('test-to_jsonld.R:116:3'): to_jsonld writes an ORKG instance into JSONLD ──
<httr2_http_404/httr2_http/httr2_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 404 Not Found.
Backtrace:
▆
1. └─dtreg::load_datatype("https://incubating.orkg.org/template/R855534") at test-to_jsonld.R:116:3
2. └─dtreg:::write_r6_classes(datatype_id)
3. └─selected_class$new()$get_schema_info(datatype_id)
4. └─dtreg:::extract_orkg(datatype_id)
5. └─dtreg (local) extractor_function(resource_id)
6. └─dtreg:::request_dtr(...)
7. └─httr2::req_perform(req)
8. └─httr2:::handle_resp(req, resp, error_call = error_call)
9. └─httr2:::resp_abort(resp, req, body, call = error_call)
10. └─rlang::abort(...)
[ FAIL 6 | WARN 0 | SKIP 0 | PASS 27 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [3s/4s] OK
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [0s/0s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR