Since 2009, spcosa has been a formal R-package. As such, it is directly available from the Comprehensive R Archive Network (CRAN).
spcosa
See https://CRAN.R-project.org/package=spcosa for more information.