View source: R/glm_helper_functions.R
run_fsl_command | R Documentation |
Wrapper for running an FSL command safely within R
run_fsl_command(
args,
fsldir = NULL,
stdout = NULL,
stderr = NULL,
echo = TRUE,
...
)
args |
FSL command string to be run |
fsldir |
Location of FSL installation. If NULL, the function will search the environment for FSLDIR or FSL commands in the PATH |
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 FSL command to the screen. Default: TRUE |
... |
Arguments passed through to the 'system' command. |
This command ensures that FSL command are run in an environment with FSL setup correctly.
The exit status of the executed FSL command. 0 for success, non-zero for failure
Michael Hallquist
## Not run:
run_fsl_command("fslmaths test_data copy_data")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.