install_dcm2nii: Install dcm2nii tools

View source: R/install_dcm2nii.R

install_dcm2niiR Documentation

Install dcm2nii tools

Description

Install dcm2nii to dcm2niir for conversion tools

Usage

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"
)

install_dcm2nii_bin(
  progdir = system.file(package = "dcm2niir"),
  dcm2niicmd = c("dcm2niix", "dcm2niix_feb2024", "dcm2nii_2009", "dcm2nii"),
  overwrite = FALSE
)

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

dcm2niicmd

(character) either "dcm2niix", "dcm2nii", or "dcm2nii_2009", which are different versions of dcm2nii.

Examples

install_dir = tempdir()
install_dcm2nii(progdir = install_dir)

muschellij2/dcmniir documentation built on July 3, 2025, 6:25 p.m.