R code specific to the creation of the emdatr package