The goal of afnir is to wrap AFNI functions in R.
You can install afnir from github with:
# install.packages("devtools") devtools::install_github("muschellij2/afnir")
This is a basic example which shows you how to solve a common problem:
...