make R package installation idempotent