CRAN Package Check Results for Package ieegio

Last updated on 2024-11-08 20:49:37 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.0.2 9.87 58.30 68.17 OK
r-devel-linux-x86_64-debian-gcc 0.0.2 7.89 42.30 50.19 OK
r-devel-linux-x86_64-fedora-clang 0.0.2 120.80 OK
r-devel-linux-x86_64-fedora-gcc 0.0.2 120.51 OK
r-devel-windows-x86_64 0.0.2 13.00 108.00 121.00 OK
r-patched-linux-x86_64 0.0.2 11.33 54.80 66.13 OK
r-release-linux-x86_64 0.0.2 10.91 55.68 66.59 OK
r-release-macos-arm64 0.0.2 44.00 ERROR
r-release-macos-x86_64 0.0.2 67.00 OK
r-release-windows-x86_64 0.0.2 12.00 73.00 85.00 OK
r-oldrel-macos-arm64 0.0.2 55.00 ERROR
r-oldrel-macos-x86_64 0.0.2 75.00 OK
r-oldrel-windows-x86_64 0.0.2 15.00 86.00 101.00 OK

Check Details

Version: 0.0.2
Check: examples
Result: ERROR Running examples in ‘ieegio-Ex.R’ failed The error most likely occurred in: > ### Name: imaging-volume > ### Title: Read and write volume data > ### Aliases: imaging-volume read_volume write_volume io_read_mgz > ### io_write_mgz io_write_mgz.ieegio_volume io_write_mgz.ieegio_mgh > ### io_write_mgz.nifti io_write_mgz.niftiImage > ### io_write_mgz.ants.core.ants_image.ANTsImage io_write_mgz.array > ### io_read_nii io_write_nii io_write_nii.ieegio_nifti > ### io_write_nii.ants.core.ants_image.ANTsImage io_write_nii.niftiImage > ### io_write_nii.nifti io_write_nii.ieegio_mgh io_write_nii.array > > ### ** Examples > > > > library(ieegio) > > nifti_file <- "brain.demosubject.nii.gz" > > # Use `ieegio_sample_data(nifti_file)` > # to download sample data > > > if( ieegio_sample_data(nifti_file, test = TRUE) ) { + + # ---- NIfTI examples --------------------------------------------- + + file <- ieegio_sample_data(nifti_file) + + # basic read + vol <- read_volume(file) + + # voxel to scanner RAS + vol$transforms$vox2ras + + # to freesurfer surface + vol$transforms$vox2ras_tkr + + # to FSL + vol$transforms$vox2fsl + + image(vol$data[,,128], asp = 1, axes = FALSE) + + # ---- using other methods -------------------------------------- + # default + vol <- read_volume(file, method = "oro", format = "nifti") + vol$header + + # lazy-load nifti + vol2 <- read_volume(file, method = "rnifti", format = "nifti") + vol2$header + + # Using ANTsPyx + vol3 <- read_volume(file, method = "ants", format = "nifti") + vol3$header + + # ---- write -------------------------------------------------------- + + # write as NIfTI + f <- tempfile(fileext = ".nii.gz") + + write_volume(vol, f, format = "nifti") + + # alternative method + write_volume(vol$header, f, format = "nifti") + + # write to mgz/mgh + f2 <- tempfile(fileext = ".mgz") + + write_volume(vol, f, format = "mgh") + + # clean up + unlink(f) + unlink(f2) + + } <simpleWarning in check_forbidden_install("Miniconda"): cannot install Miniconda during R CMD check> Warning in check_forbidden_install("Conda Environments") : cannot install Conda Environments during R CMD check Error: Unable to find conda binary. Is Anaconda installed? Execution halted Flavors: r-release-macos-arm64, r-oldrel-macos-arm64