- using R Under development (unstable) (2023-10-01 r85245 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 12.2.0
GNU Fortran (GCC) 12.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'yamlet/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'yamlet' version '0.10.32'
- 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 'yamlet' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... 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 ... [2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] OK
- checking loading without being on the library search path ... [2s] 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 ... [9s] OK
- checking Rd files ... [4s] 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [3s] ERROR
Running examples in 'yamlet-Ex.R' failed
The error most likely occurred in:
> ### Name: as.data.frame.yamlet
> ### Title: Coerce Yamlet to Data Frame
> ### Aliases: as.data.frame.yamlet
> ### Keywords: internal
>
> ### ** Examples
>
>
> library(magrittr)
>
> file <- system.file(package = 'yamlet', 'extdata','quinidine.yaml')
> file %>% read_yamlet %>% explicit_guide %>% as.data.frame
Error in match.fun(test)(val, data = data[[i]], token = i, ...) :
is.atomic(data) is not TRUE
Calls: %>% ... explicit_guide -> explicit_guide.yamlet -> <Anonymous> -> stopifnot
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [17s] ERROR
Running 'testthat.R' [17s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(yamlet)
Attaching package: 'yamlet'
The following object is masked from 'package:stats':
filter
>
> test_check("yamlet")
tibble [4 × 1] (S3: tbl_df/tbl/data.frame)
$ RACE: 'dvec' chr [1:4] "WHITE" "WHITE" "WHITE" "WHITE"
..- attr(*, "label")= chr "Race"
'dvec' int [1:4] 0 1 0 1
- attr(*, "label")= chr "sex"
- attr(*, "guide")=List of 2
..$ female: int 0
..$ male : int 1
'dvec' int [1:4] 0 1 0 1
- attr(*, "label")= chr "sex"
- attr(*, "guide")=List of 2
..$ female: int 0
..$ male : int 1
'dvec' num(0)
List of 2
$ : 'dvec' num 1
$ : 'dvec' num 1
blq: [ LOQ Y/N, [ 'No': 0, 'Yes': 1 ]]
letters: [ Letters, [ a, b, c, NA ]]
letters: [ Letters, [ a, b, c, 'NA' ]]
[ FAIL 1 | WARN 1 | SKIP 2 | PASS 509 ]
══ Skipped tests (2) ═══════════════════════════════════════════════════════════
• empty test (2): 'test-yamlet.R:1340:1', 'test-yamlet.R:1345:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-yamlet.R:302:3'): explicit_guide recognizes encodings, units, formats, and codelists ──
Error in `match.fun(test)(val, data = data[[i]], token = i, ...)`: is.atomic(data) is not TRUE
Backtrace:
▆
1. ├─"CONC: [ concentration, ng/mL ]" %>% as_yamlet %>% ... at test-yamlet.R:302:2
2. ├─yamlet::explicit_guide(.)
3. └─yamlet:::explicit_guide.yamlet(.)
4. └─match.fun(test)(val, data = data[[i]], token = i, ...)
5. └─base::stopifnot(is.atomic(data))
[ FAIL 1 | WARN 1 | SKIP 2 | PASS 509 ]
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 ... [5s] OK
- checking PDF version of manual ... [37s] OK
- checking HTML version of manual ... [41s] OK
- DONE
Status: 2 ERRORs