spm12r is an R Package wrapping up SPM12 from the Wellcome Trust Centre for Neuroimaging
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()