- using R version 4.5.2 Patched (2026-01-31 r89382)
- using platform: aarch64-apple-darwin20
- R was compiled by
Apple clang version 16.0.0 (clang-1600.0.26.6)
GNU Fortran (GCC) 14.2.0
- running under: macOS Ventura 13.7.8
- using session charset: UTF-8
- checking for file ‘neuroim2/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘neuroim2’ version ‘0.19.1’
- 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 ‘neuroim2’ can be installed ... [33s/19s] OK
See the install log for details.
- used C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
- used SDK: ‘MacOSX11.3.1.sdk’
- checking C++ specification ... OK
- checking installed package size ... INFO
installed size is 13.3Mb
sub-directories of 1Mb or more:
R 3.1Mb
doc 2.2Mb
extdata 1.7Mb
libs 5.5Mb
- 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/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] 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/9s] OK
- checking Rd files ... [1s/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 line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [4s/4s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [30s/30s] ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [30s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(neuroim2)
Loading required package: Matrix
>
> test_check("neuroim2")
Saving _problems/test-io-conformance-420.R
2026-10-14 04:20:30.640 R[23432:348903] XType: Using static font registry.
[ FAIL 1 | WARN 0 | SKIP 77 | PASS 7690 ]
══ Skipped tests (77) ══════════════════════════════════════════════════════════
• On CRAN (76): 'test-cgb.R:2:3', 'test-cgb.R:45:3', 'test-cgb.R:93:3',
'test-cgb.R:118:3', 'test-cgb.R:143:3', 'test-clusteredneurovol.R:5:3',
'test-clusteredneurovol.R:35:3', 'test-clusteredneurovol.R:50:3',
'test-clusteredneurovol.R:67:3', 'test-clusteredneurovol.R:87:3',
'test-clusteredneurovol.R:103:3', 'test-clusteredneurovol.R:117:3',
'test-downsample.R:5:3', 'test-downsample.R:23:3', 'test-downsample.R:63:3',
'test-downsample.R:79:3', 'test-downsample.R:106:3',
'test-downsample.R:228:3', 'test-downsample.R:245:3',
'test-downsample.R:284:3', 'test-downsample.R:299:3',
'test-downsample.R:326:3', 'test-enhance-stat-map.R:118:3',
'test-filebacked.R:44:3', 'test-filebacked.R:50:3', 'test-filebacked.R:86:3',
'test-filebacked.R:117:3', 'test-imageproc.R:5:3', 'test-imageproc.R:19:3',
'test-neurovec.R:121:3', 'test-nifti-extensions.R:146:3',
'test-nifti-roundtrip.R:110:3', 'test-nifti-roundtrip.R:124:3',
'test-oblique-regression.R:6:3', 'test-oblique-regression.R:22:3',
'test-oblique-regression.R:35:3', 'test-oblique-regression.R:45:3',
'test-oblique-regression.R:60:3', 'test-performance-guardrails.R:40:3',
'test-performance-guardrails.R:72:3', 'test-plot-engine.R:3:1',
'test-plot-overlay-colorbar-title.R:3:1', 'test-plot-registration-qc.R:3:1',
'test-plot-stat-fixes.R:3:1', 'test-plot-structure.R:3:1',
'test-resample-to.R:2:3', 'test-resample.R:8:3', 'test-resample.R:22:3',
'test-roi-series-fastpaths.R:390:3', 'test-searchlight-coverage.R:22:3',
'test-searchlight-coverage.R:30:3', 'test-searchlight-coverage.R:56:3',
'test-searchlight-coverage.R:74:3', 'test-searchlight-coverage.R:162:3',
'test-searchlight-coverage.R:170:3', 'test-searchlight-coverage.R:177:3',
'test-searchlight-parallel.R:12:3', 'test-searchlight-parallel.R:25:3',
'test-searchlight.R:20:3', 'test-searchlight.R:40:3', 'test-simulate.R:18:3',
'test-simulate.R:52:3', 'test-spatfilter.R:6:3', 'test-spatfilter.R:21:3',
'test-spatfilter.R:38:3', 'test-spatfilter.R:52:3', 'test-spatfilter.R:73:3',
'test-spatfilter.R:99:3', 'test-spatfilter.R:127:3',
'test-spatfilter.R:139:3', 'test-vignette-examples.R:12:1',
'test-vignette-neuro-vectors.R:4:3', 'test-vignette-pipelines.R:6:3',
'test-vignette-pipelines.R:27:3', 'test-vignette-pipelines.R:52:3',
'test-vignette-roi.R:6:3'
• empty test (1):
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-io-conformance.R:420:3'): a file that is not an image is rejected with the reason ──
`read_header(f)` threw an error with unexpected message.
Expected match: "does\\s+not\\s+start with a NIfTI"
Actual message: "'/Volumes/Temp/tmp/Rtmpxi5Iud/file5b887715a74b.nii' does not start with\na NIfTI or ANALYZE header.\n✖ The leading sizeof_hdr field is 0; it must be 348 (NIfTI-1/ANALYZE) or 540\n (NIfTI-2), in either byte order.\nℹ The file may be compressed with something other than gzip, be truncated, or\n not be an image at all."
Backtrace:
▆
1. ├─testthat::expect_error(read_header(f), "does\\s+not\\s+start with a NIfTI") at test-io-conformance.R:420:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─neuroim2::read_header(f)
7. ├─neuroim2::read_meta_info(desc, file_name)
8. └─neuroim2::read_meta_info(desc, file_name)
9. └─neuroim2:::.read_meta_info(x, file_name, read_nifti_header, NIFTIMetaInfo)
10. └─neuroim2 (local) read_func(hfile)
11. └─neuroim2:::.nifti_endian_and_version(conn, fname)
12. └─cli::cli_abort(...)
13. └─rlang::abort(...)
[ FAIL 1 | WARN 0 | SKIP 77 | PASS 7690 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [58s/57s] OK
- checking PDF version of manual ... [8s/8s] OK
- DONE
Status: 1 ERROR