View source: R/runFSLCommand.R
runFSLCommand | R Documentation |
Wrapper for running an fsl command safely within R
runFSLCommand(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 |
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 |
This command ensures that $FSLDIR/bin is in the PATH and sources $FSLDIR/etc/fslconf/fsl.sh
I should probably just use the fslr
package, but didn't know about it prior to writing this...
The exit status of the executed FSL command. 0 for success, non-zero for failure
Michael Hallquist
## Not run:
runFSLCommand("fslmaths inp_nif -mul 10 -abs -thr 15 manip_out")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.