Runs spm12_script with wrapper for spm12r functions

run_spm12_script(
  script_name,
  jobvec = NULL,
  mvec = NULL,
  add_spm_dir = TRUE,
  spmdir = spm_dir(verbose = verbose),
  clean = TRUE,
  verbose = TRUE,
  single_thread = FALSE,
  ...
)

build_spm12_script(
  script_name,
  jobvec = NULL,
  mvec = NULL,
  add_spm_dir = TRUE,
  spmdir = spm_dir(verbose = verbose),
  verbose = TRUE,
  install_dir = NULL,
  ...
)

Arguments

script_name

Name of the script filename without .m ext, passed to spm12_script

jobvec

Vector of characters to be substituted in _job.m file

mvec

Vector of characters to be substituted in .m file

add_spm_dir

Add SPM12 directory from this package

spmdir

SPM dir to add, will use package default directory

clean

Remove scripts from temporary directory after running

verbose

Print diagnostic messages

single_thread

Should the flag -singleCompThread be executed to limit MATLAB to a single computational thread?

...

Arguments to pass to spm12_script

install_dir

directory to download SPM12

Value

Result of run_matlab_script