1. Unpack all files into one folder.
2. Open R version 4.1.2 and set the working directory to the folder with all the files.
3. Run Script.R.

In case the SPTools package is not available from GitHub anymore, you can also find it included in this dataset so you can install it from here.