runAFNICommand: Wrapper for running an AFNI command safely within R

View source: R/runAFNICommand.R

runAFNICommandR Documentation

Wrapper for running an AFNI command safely within R

Description

Wrapper for running an AFNI command safely within R

Usage

runAFNICommand(
  args,
  afnidir = NULL,
  stdout = NULL,
  stderr = NULL,
  echo = TRUE,
  ...
)

Arguments

args

AFNI command string to be run

afnidir

Location of AFNI installation. If NULL, the function will serach the environment for AFNIDIF

stdout

File target for redirecting stdout. If NULL, stdout will not be captured

stderr

File target for redirecting stderr. If NULL, stderr will not be captured

echo

Whether to print AFNI command to the screen

Details

This command ensures that AFNI comamnds are in the system PATH

Value

The exit status of the executed AFNI command. 0 for success, non-zero for failure

Author(s)

Michael Hallquist

Examples


## Not run: 
runAFNICommand("3dcopy test_data copy_data")

## End(Not run)

PennStateDEPENdLab/dependlab documentation built on Sept. 26, 2024, 8:40 p.m.