Install dcm2nii to dcm2niir for conversion tools

install_dcm2nii(lib.loc = NULL, overwrite = FALSE,
  from_source = FALSE, jpeg = FALSE, progdir = NULL,
  cmake_opts = "", verbose = TRUE, source_clone_dir = NULL,
  git_url = "https://github.com/rordenlab/dcm2niix")

Arguments

lib.loc

a character vector with path names of R libraries. Passed to system.file

overwrite

Force reinstallation if one already present

from_source

if this is TRUE, then git and cmake are required and the current version is cloned from https://github.com/rordenlab/dcm2niix

jpeg

install using JPEG utilities

progdir

Installation directory for executable built

cmake_opts

Additional options to pass to cmake, like -DZLIB_IMPLEMENTATION=Cloudflare

verbose

print diagnostic messages

source_clone_dir

experimental, where the file should be cloned if source install. Do not use unless you know what you're doing.

git_url

URL of git repository used for building from source

Examples

install_dir = tempdir()
install_dcm2nii(progdir = install_dir)
#> [1] TRUE