These shell commands are only tested on 'MacOS' and 'Linux'. On 'Windows' machines, please use the 'WSL2' system.
cmd_execute(
script,
script_path,
command = "bash",
dry_run = FALSE,
backup = TRUE,
args = NULL,
...
)cmd_run_r(
expr,
quoted = FALSE,
verbose = TRUE,
dry_run = FALSE,
log_file = tempfile(),
script_path = tempfile(),
...
)
A list of data containing the script details:
scriptscript details
script_pathwhere the script should/will be saved
dry_runwhether dry-run mode is turned on
log_filepath to the log file
executea function to execute the script
the shell script
path to run the script
which command to invoke; default is 'bash'
whether to run in dry-run mode; under such mode, the shell command will not execute. This is useful for debugging scripts; default is false
whether to back up the script file immediately; default is true
further arguments in the shell command, especially the 'FreeSurfer' reconstruction command
passed to system2, or additional arguments
expression to run as command
whether expr is quoted; default is false
whether to print out the command script; default is true under dry-run mode, and false otherwise
where should log file be stored