- using R Under development (unstable) (2022-06-30 r82540)
- using platform: x86_64-pc-linux-gnu (64-bit)
- using session charset: UTF-8
- checking for file ‘OpenSpecy/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘OpenSpecy’ version ‘0.9.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 ‘OpenSpecy’ 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 ... [13s/21s] OK
- checking Rd files ... [1s/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 ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [3s/6s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [5s/9s] ERROR
Running ‘testthat.R’ [4s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(OpenSpecy)
>
> test_check("OpenSpecy")
[ FAIL 1 | WARN 0 | SKIP 4 | PASS 95 ]
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (4)
══ Failed tests ════════════════════════════════════════════════════════════════
── Error (test-read_spec.R:60:3): read_jdx() gives expected output ─────────────
Error in `gsub("([[:blank:]][$][$].*)$", "", hdr)`: input string 15 is invalid
Backtrace:
▆
1. ├─testthat::expect_match(...) at test-read_spec.R:60:2
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─testthat::capture_messages(suppressWarnings(jdx <- read_jdx(read_extdata("fitr_nitrocellulose.jdx"))))
5. │ └─base::withCallingHandlers(...)
6. ├─base::suppressWarnings(jdx <- read_jdx(read_extdata("fitr_nitrocellulose.jdx")))
7. │ └─base::withCallingHandlers(...)
8. └─OpenSpecy::read_jdx(read_extdata("fitr_nitrocellulose.jdx"))
9. └─hyperSpec::read.jdx(file, ...)
10. ├─utils::modifyList(...)
11. │ └─base::stopifnot(is.list(x), is.list(val))
12. └─hyperSpec:::.jdx.readhdr(jdx[hdrstart[s]:(datastart[s] - 1)])
13. └─base::gsub("([[:blank:]][$][$].*)$", "", hdr)
[ FAIL 1 | WARN 0 | SKIP 4 | PASS 95 ]
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 ... [6s/11s] OK
- checking PDF version of manual ... OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR