Wrapper for running spm12_script

Share:

Description

Runs spm12_script with wrapper for spm12r functions

Usage

1
2
3
run_spm12_script(script_name, jobvec = NULL, mvec = NULL,
  add_spm_dir = TRUE, spmdir = spm_dir(), clean = TRUE, verbose = TRUE,
  ...)

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

...

Arguments to pass to spm12_script

Value

Result of run_matlab_script