- using R version 4.3.3 (2024-02-29)
- using platform: x86_64-apple-darwin20 (64-bit)
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.3.1
- using session charset: UTF-8
- checking for file ‘handwriterRF/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘handwriterRF’ version ‘1.0.2’
- 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 ‘handwriterRF’ can be installed ... [2s/2s] 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 ... [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 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 ... [2s/2s] OK
- checking Rd files ... [0s/0s] 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/0s] 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 ... [8s/8s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [50s/50s] ERROR
Running ‘testthat.R’ [49s/50s]
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(handwriterRF)
>
> test_check("handwriterRF")
Copying samples to output directory > docs...
Processing samples...
Loading graphs for w0030_s01_pWOZ_r01_proclist.rds
Cluster assignments already exist for w0030_s01_pWOZ_r01
Loading graphs for w0030_s01_pWOZ_r02_proclist.rds
Cluster assignments already exist for w0030_s01_pWOZ_r02
Calculating distance between samples...
Calculating similarity score between samples...
Calculating SLR for samples...
Copying samples to output directory > docs...
Processing samples...
Loading graphs for w0030_s01_pWOZ_r01_proclist.rds
Cluster assignments already exist for w0030_s01_pWOZ_r01
Loading graphs for w0238_s01_pWOZ_r02_proclist.rds
Cluster assignments already exist for w0238_s01_pWOZ_r02
Calculating distance between samples...
Calculating similarity score between samples...
Calculating SLR for samples...
Copying samples to output directory > docs...
Processing samples...
Loading graphs for w0238_s01_pWOZ_r02_proclist.rds
Cluster assignments already exist for w0238_s01_pWOZ_r02
Loading graphs for w0238_s01_pWOZ_r03_proclist.rds
Cluster assignments already exist for w0238_s01_pWOZ_r03
Calculating distance between samples...
Calculating similarity score between samples...
Calculating SLR for samples...
Copying samples to output directory > docs...
Processing samples...
path in readPNGBinary: /var/folders/2b/t0kwbtmn3p7brv2mvx39c9cr0000gn/T//RtmpIONENY/comparison/docs/w0030_s01_pWOZ_r01.png
Starting Processing...
Getting Nodes...
Skeletonizing writing...
Splitting document into components...
Merging nodes...
Finding paths...
Split paths into graphs...
Organizing graphs...
Creating graph lists...
Adding character features...
Document processing complete
path in readPNGBinary: /var/folders/2b/t0kwbtmn3p7brv2mvx39c9cr0000gn/T//RtmpIONENY/comparison/docs/w0030_s01_pWOZ_r02.png
Starting Processing...
Getting Nodes...
Skeletonizing writing...
Splitting document into components...
Merging nodes...
Finding paths...
Split paths into graphs...
Organizing graphs...
Creating graph lists...
Adding character features...
Document processing complete
Loading graphs for w0030_s01_pWOZ_r01_proclist.rds
Getting cluster assignments for w0030_s01_pWOZ_r01
Saving cluster assignments for w0030_s01_pWOZ_r01
Loading graphs for w0030_s01_pWOZ_r02_proclist.rds
Getting cluster assignments for w0030_s01_pWOZ_r02
Saving cluster assignments for w0030_s01_pWOZ_r02
Calculating distance between samples...
Calculating similarity score between samples...
Calculating SLR for samples...
Copying samples to output directory > docs...
Processing samples...
Loading graphs for sample1_proclist.rds
Cluster assignments already exist for sample1
Loading graphs for sample2_proclist.rds
Cluster assignments already exist for sample2
Calculating distance between samples...
Calculating similarity score between samples...
Calculating SLR for samples...
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 24 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-train.R:30:3'): Make densities works with ranger package ─────
`actual` (`actual`) not equal to rforest$densities (`expected`).
`actual$same_writer` is length 7
`expected$same_writer` is length 8
names(actual$same_writer) | names(expected$same_writer)
[2] "y" | "y" [2]
[3] "bw" | "bw" [3]
[4] "n" | "n" [4]
[5] "call" - "old.coords" [5]
[6] "data.name" - "call" [6]
[7] "has.na" - "data.name" [7]
- "has.na" [8]
actual$same_writer$y | expected$same_writer$y
[1] 0.00068894 - 0.00068874 [1]
[2] 0.00069383 - 0.00069363 [2]
[3] 0.00069875 - 0.00069855 [3]
[4] 0.00070371 - 0.00070350 [4]
[5] 0.00070869 - 0.00070848 [5]
[6] 0.00071371 - 0.00071350 [6]
[7] 0.00071876 - 0.00071855 [7]
[8] 0.00072384 - 0.00072363 [8]
[9] 0.00072895 - 0.00072874 [9]
[10] 0.00073410 - 0.00073388 [10]
... ... ... and 9990 more ...
`actual$same_writer$old.coords` is absent
`expected$same_writer$old.coords` is a logical vector (FALSE)
`actual$diff_writer` is length 7
`expected$diff_writer` is length 8
names(actual$diff_writer) | names(expected$diff_writer)
[2] "y" | "y" [2]
[3] "bw" | "bw" [3]
[4] "n" | "n" [4]
[5] "call" - "old.coords" [5]
[6] "data.name" - "call" [6]
[7] "has.na" - "data.name" [7]
- "has.na" [8]
actual$diff_writer$y | expected$diff_writer$y
[1] 0.15227451 - 0.15223259 [1]
[2] 0.15337566 - 0.15333350 [2]
[3] 0.15448381 - 0.15444142 [3]
[4] 0.15559973 - 0.15555710 [4]
[5] 0.15672256 - 0.15667969 [5]
[6] 0.15785233 - 0.15780922 [6]
[7] 0.15898908 - 0.15894573 [7]
[8] 0.16013372 - 0.16009013 [8]
[9] 0.16128565 - 0.16124182 [9]
[10] 0.16244467 - 0.16240060 [10]
... ... ... and 9990 more ...
`actual$diff_writer$old.coords` is absent
`expected$diff_writer$old.coords` is a logical vector (FALSE)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 24 ]
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 ... [8s/8s] OK
- checking PDF version of manual ... [5s/5s] OK
- DONE
Status: 1 ERROR
- using check arguments '--no-clean-on-error '