Install spm12 scripts to spm12r for script capabilities

install_spm12(lib.loc = NULL, verbose = TRUE, install_dir = NULL)

Arguments

lib.loc

a character vector with path names of R libraries. Passed to system.file

verbose

print diagnostic messages

install_dir

Alternative directory to download SPM12

Examples

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)}) } }
#> cloning into '/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//Rtmp13birO/file9be87d4f0f05/spm12'... #> Receiving objects: 1% (68/6722), 23 kb #> Receiving objects: 11% (740/6722), 2966 kb #> Receiving objects: 21% (1412/6722), 3318 kb #> Receiving objects: 31% (2084/6722), 9470 kb #> Receiving objects: 41% (2757/6722), 10988 kb #> Receiving objects: 51% (3429/6722), 31460 kb #> Receiving objects: 61% (4101/6722), 36479 kb #> Receiving objects: 71% (4773/6722), 46979 kb #> Receiving objects: 81% (5445/6722), 70586 kb #> Receiving objects: 91% (6118/6722), 99258 kb #> Receiving objects: 100% (6722/6722), 131273 kb, done.