test R package to calculate whether a year is a leap year