The emil R package