install.packages('smmR')
You need to have git. Then:
git clone https://plmlab.math.cnrs.fr/lmrs/statistique/smmR.git
R CMD build . R CMD check --as-cran .