Running ‘testthat.R’ [43s/62s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(freesurferformats)
  > 
  > test_check("freesurferformats")
  [ FAIL 11 | WARN 0 | SKIP 21 | PASS 680 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Freesurfer installation with GCA file available. (1)
  • On CRAN (18)
  • Test data missing. (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-gifti_writer.R:6:3): We can use the GIFTI writer ────────────────
  Error in `gifti_xml(...)`: Writing files in GIFTI format requires the 'gifti' package to be installed.
  Backtrace:
      ▆
   1. └─freesurferformats::gifti_writer(...) at test-gifti_writer.R:6:2
   2.   └─freesurferformats::gifti_xml(...)
  ── Error (test-read_fs_annot.R:152:3): An annotation can be read in GIFTI format. ──
  Error in `gifti_xml(list(label), intent = "NIFTI_INTENT_LABEL", datatype = "NIFTI_TYPE_INT32")`: Writing files in GIFTI format requires the 'gifti' package to be installed.
  Backtrace:
      ▆
   1. └─freesurferformats::write.fs.annot.gii(output_file, annot) at test-read_fs_annot.R:152:2
   2.   └─freesurferformats::gifti_xml(...)
  ── Error (test-read_fs_curv.R:37:3): Our demo morphometry data GIFTI file can be read using read.fs.morph ──
  Error in `read.fs.morph.gii(filepath)`: Reading files in GIFTI format requires the 'gifti' package to be installed.
  Backtrace:
      ▆
   1. └─freesurferformats::read.fs.morph(morphfile) at test-read_fs_curv.R:37:2
   2.   └─freesurferformats::read.fs.morph.gii(filepath)
  ── Error (test-read_fs_label.R:85:3): A gifti surface label file can be read ───
  Error in `read.fs.label.gii(labelfile)`: The 'gifti' package must be installed to use this functionality.
  Backtrace:
      ▆
   1. └─freesurferformats::read.fs.label.gii(labelfile) at test-read_fs_label.R:85:2
  ── Error (test-read_fs_surface.R:416:3): Surface files in GIFTI Format can be read using read.fs.surface ──
  Error in `read.fs.surface.gii(filepath)`: Reading GIFTI format surface files requires the package 'gifti' to be installed.
  Backtrace:
      ▆
   1. └─freesurferformats::read.fs.surface(surface_file) at test-read_fs_surface.R:416:2
   2.   └─freesurferformats::read.fs.surface.gii(filepath)
  ── Error (test-read_nisurface.R:59:3): A surface file in GIFTI format can be read using read_nisurfacefile ──
  Error in `read_nisurfacefile.default(gii_surface_file)`: Surface file '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/freesurferformats/extdata/lh.tinysurface.gii' could not be read with any of the available methods, format invalid or not supported.
  
  Backtrace:
      ▆
   1. ├─freesurferformats::read_nisurfacefile(gii_surface_file) at test-read_nisurface.R:59:2
   2. ├─freesurferformats:::read_nisurfacefile.fsnative(gii_surface_file)
   3. ├─base::NextMethod("read_nisurfacefile")
   4. ├─freesurferformats:::read_nisurfacefile.fsascii(gii_surface_file)
   5. ├─base::NextMethod("read_nisurfacefile")
   6. ├─freesurferformats:::read_nisurfacefile.gifti(gii_surface_file)
   7. ├─base::NextMethod("read_nisurfacefile")
   8. └─freesurferformats:::read_nisurfacefile.default(gii_surface_file)
  ── Error (test-write_fs_annot.R:91:3): An annotation can be written in GIFTI format and read again based on the class method. ──
  Error in `gifti_xml(list(label), intent = "NIFTI_INTENT_LABEL", datatype = "NIFTI_TYPE_INT32")`: Writing files in GIFTI format requires the 'gifti' package to be installed.
  Backtrace:
      ▆
   1. └─freesurferformats::write.fs.annot.gii(output_file, annot) at test-write_fs_annot.R:91:2
   2.   └─freesurferformats::gifti_xml(...)
  ── Error (test-write_fs_curv.R:114:3): Morph data can be written in GIFTI format ──
  Error in `gifti_xml(...)`: Writing files in GIFTI format requires the 'gifti' package to be installed.
  Backtrace:
      ▆
   1. └─freesurferformats::write.fs.morph(filepath, data, format = "gii") at test-write_fs_curv.R:114:2
   2.   └─freesurferformats::write.fs.morph.gii(filepath, data)
   3.     └─freesurferformats::gifti_writer(...)
   4.       └─freesurferformats::gifti_xml(...)
  ── Error (test-write_fs_label.R:46:3): A GIFTI label file can be written and read again ──
  Error in `gifti_xml(list(label), intent = "NIFTI_INTENT_LABEL", datatype = "NIFTI_TYPE_INT32")`: Writing files in GIFTI format requires the 'gifti' package to be installed.
  Backtrace:
      ▆
   1. └─freesurferformats::write.fs.label.gii(outfile, label, 50L) at test-write_fs_label.R:46:2
   2.   └─freesurferformats::gifti_xml(...)
  ── Error (test-write_fs_surface.R:110:3): One can export surface meshes in OFF, OBJ, PLY2 and PLY formats ──
  Error in `gifti_xml(my_data_sets, datatype = c("NIFTI_TYPE_FLOAT32", "NIFTI_TYPE_INT32"), 
      intent = c("NIFTI_INTENT_POINTSET", "NIFTI_INTENT_TRIANGLE"))`: Writing files in GIFTI format requires the 'gifti' package to be installed.
  Backtrace:
      ▆
   1. └─freesurferformats::write.fs.surface.gii(...) at test-write_fs_surface.R:110:2
   2.   └─freesurferformats::gifti_xml(...)
  ── Error (test-write_fs_surface.R:169:3): One can write meshes in all formats directly from write.fs.surface ──
  Error in `gifti_xml(my_data_sets, datatype = c("NIFTI_TYPE_FLOAT32", "NIFTI_TYPE_INT32"), 
      intent = c("NIFTI_INTENT_POINTSET", "NIFTI_INTENT_TRIANGLE"))`: Writing files in GIFTI format requires the 'gifti' package to be installed.
  Backtrace:
      ▆
   1. └─freesurferformats::write.fs.surface(...) at test-write_fs_surface.R:169:2
   2.   └─freesurferformats::write.fs.surface.gii(...)
   3.     └─freesurferformats::gifti_xml(...)
  
  [ FAIL 11 | WARN 0 | SKIP 21 | PASS 680 ]
  Error: Test failures
  Execution halted