You can install the stable version on CRAN:
install.packages('spm12r', dependencies = TRUE)Install in R using devtools:
devtools::install_github("muschellij2/spm12r")After spm12r is installed, you can install the required SPM scripts using:
spm12r::install_spm12()