checkimg-methods: Force object to filename

checkimg-methodsR Documentation

Force object to filename

Description

Ensures the output to be a character filename (or vector) from an input image or nifti.

Usage

checkimg(file, allow_array = FALSE, ...)

## S4 method for signature 'nifti'
checkimg(file, allow_array = FALSE, ...)

## S4 method for signature 'ANY'
checkimg(file, allow_array = FALSE, ...)

## S4 method for signature 'character'
checkimg(file, allow_array = FALSE, ...)

## S4 method for signature 'list'
checkimg(file, allow_array = FALSE, ...)

Arguments

file

character or nifti object

allow_array

allow arrays to be passed in

...

options passed to tempimg

Value

character filename of image or temporary nii, with .nii extension

Author(s)

John Muschelli muschellij2@gmail.com


neurobase documentation built on Oct. 23, 2022, 5:05 p.m.