R package intervals