An implemtation of the CRC-SPIN model R usng Rcpp.