SPARK is implemented as an R package, which can be installed from GitHub by:

1. Install devtools if necessary

install.packages('devtools')

2. Install SPARK

devtools::install_github('xzhoulab/SPARK')

3. Load package

library(SPARK)