locateExecutable | R Documentation |
The execute
function is a wrapper around the system2
function in base, which additionally echoes the command being run (including
the full path to the executable) if the reportr output level is
Debug
. locateExecutable
simply returns the path to an
executable file on the system PATH
.
locateExecutable(fileName, errorIfMissing = TRUE)
execute(executable, params = NULL, errorOnFail = TRUE, silent = FALSE,
...)
executable , fileName |
Name of the executable to run. |
params |
A character vector giving the parameters to pass to the executable, if any. Elements will be separated by a space. |
errorOnFail , errorIfMissing |
Logical value: should an error be produced if the executable can't be found? |
silent |
Logical value: should the executable be run without any output? |
... |
Additional arguments to |
For execute
, the return value of the underlying call to
system2
. For locateExecutable
, the location of the
requested executable, or NULL
if it could not be found.
These functions are designed for Unix systems and may not work on Windows.
Jon Clayden
Please cite the following reference when using TractoR in your work:
J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A. Clark (2011). TractoR: Magnetic resonance imaging and tractography with R. Journal of Statistical Software 44(8):1-18. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v044.i08")}.
system2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.