install_spm12.RdInstall spm12 scripts to spm12r for script capabilities
install_spm12(lib.loc = NULL, verbose = TRUE, install_dir = NULL)a character vector with path names of R libraries.
Passed to system.file
print diagnostic messages
Alternative directory to download SPM12
tdir = tempfile()
dir.create(tdir)
in_ci <- function() {
nzchar(Sys.getenv("CI"))
}
if (matlabr::have_matlab()) {
if (.Platform$OS.type == "unix" | in_ci()) { # windows problem
res = try({install_spm12(install_dir = tdir)})
res = try({install_spm12(install_dir = tdir)})
}
}