- using R Under development (unstable) (2026-07-02 r90204 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
* current time: 2026-07-03 14:18:05 UTC
- checking for file 'ggseg/DESCRIPTION' ... OK
- this is package 'ggseg' version '2.2.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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'ggseg' can be installed ... OK
See the install log for details.
- checking installed package size ... INFO
installed size is 5.0Mb
sub-directories of 1Mb or more:
doc 2.8Mb
- 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 code 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 ... [2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s] 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 ... [6s] OK
- checking Rd files ... [1s] 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 ... [10s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [30s] ERROR
Running 'spelling.R' [0s]
Running 'testthat.R' [30s]
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(ggseg)
>
> test_check("ggseg")
Starting 2 test processes.
Saving _problems/test-coords-23.R
Saving _problems/test-coords-31.R
Saving _problems/test-geom-brain-231.R
[ FAIL 3 | WARN 2 | SKIP 21 | PASS 403 ]
══ Skipped tests (21) ══════════════════════════════════════════════════════════
• On CRAN (21): 'test-annotate-brain.R:179:3', 'test-annotate-brain.R:188:3',
'test-annotate-brain.R:204:3', 'test-annotate-brain.R:213:3',
'test-brain-atlas-plots.R:2:3', 'test-brain-atlas-plots.R:9:3',
'test-brain-atlas-plots.R:21:3', 'test-brain-atlas-plots.R:33:3',
'test-brain-atlas-plots.R:45:3', 'test-brain-atlas-plots.R:57:3',
'test-brain-atlas-plots.R:69:3', 'test-brain-atlas-plots.R:86:3',
'test-brain-atlas-plots.R:93:3', 'test-brain-atlas-plots.R:105:3',
'test-brain-atlas-plots.R:117:3', 'test-brain-atlas-plots.R:129:3',
'test-brain-atlas-plots.R:141:3', 'test-brain-atlas-plots.R:148:3',
'test-brain-atlas-plots.R:160:3', 'test-brain-atlas-plots.R:172:3',
'test-brain-atlas-plots.R:184:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-coords.R:23:5'): sf2coords / converts sf data to coords format ──
Error in `seq_len(nrow(x))`: argument must be coercible to non-negative integer
Backtrace:
▆
1. └─ggseg:::sf2coords(dk()$data$sf) at test-coords.R:23:5
2. └─base::lapply(...)
── Error ('test-coords.R:31:5'): sf2coords / removes geometry column ───────────
Error in `seq_len(nrow(x))`: argument must be coercible to non-negative integer
Backtrace:
▆
1. └─ggseg:::sf2coords(dk()$data$sf) at test-coords.R:31:5
2. └─base::lapply(...)
── Failure ('test-geom-brain.R:228:5'): LayerBrain / errors when atlas has no data ──
Expected `ggplot_build(ggplot() + geom_brain_sf(atlas = empty_atlas))` to throw a error.
[ FAIL 3 | WARN 2 | SKIP 21 | PASS 403 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [73s] OK
- checking PDF version of manual ... [19s] OK
- checking HTML version of manual ... [4s] OK
- DONE
Status: 1 ERROR