R code specific to the creation of the sheldus package