Install the released version from CRAN:
install.packages('spNNGP')
Fits Gaussian univariate Bayesian spatial regression models for large datasets using Nearest Neighbor Gaussian Processes (NNGP) detailed in Datta, Banerjee, Finley, and Gelfand (2016) and Finley, Datta, Cook, Morton, Andersen, and Banerjee (2017).