You can install the stable version on R CRAN.
install.packages('M4comp', dependencies = TRUE)
You can install the development version from Github
# install.packages("devtools")
library(devtools)
install_github("bsouhaib/M4comp")
library(M4comp)
print(M4)
plot(M4[[1]])
print(M4[[1]])
This package is free and open source software, licensed under GPL (>= 2).