R/aaa_utils.R

Defines functions nii_fname

nii_fname = function(fname) {
  gz = grepl("[.]gz$", tolower(fname))
  if (any(gz)) {
    fname[gz] = sapply(
      fname[gz],
      R.utils::gunzip,
      temporary = TRUE,
      overwrite = TRUE,
      remove = FALSE)
  }
  return(fname)
}

Try the cifti package in your browser

Any scripts or data that you put into this service are public.

cifti documentation built on May 2, 2019, 9:13 a.m.