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 (.Platform$OS.type == "unix" | in_ci()) { # windows problem
res = install_spm12(install_dir = tdir)
res = install_spm12(install_dir = tdir)
}
#> cloning into '/tmp/RtmpBbKv5F/fileac272b1d495e/spm12'...
#> Receiving objects:   1% (68/6779),   24 kb
#> Receiving objects:  11% (746/6779), 2963 kb
#> Receiving objects:  21% (1424/6779), 3330 kb
#> Receiving objects:  31% (2102/6779), 9515 kb
#> Receiving objects:  41% (2780/6779), 11018 kb
#> Receiving objects:  51% (3458/6779), 32147 kb
#> Receiving objects:  61% (4136/6779), 36542 kb
#> Receiving objects:  71% (4814/6779), 47043 kb
#> Receiving objects:  81% (5491/6779), 71480 kb
#> Receiving objects:  91% (6169/6779), 99322 kb
#> Receiving objects: 100% (6779/6779), 131283 kb, done.