knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  warning = FALSE
)
library(devtools)
library(knitr)
install_github("nheng91/LeapYear")
library(LeapYear)
load_data()

LeapYear package

This Vignette offers a brief description of how to use the LeapYear package. The LeapYear package contains only one function: leap_year(). The user must enter a year between 1804 and 2400 and leap_year() will notify the user of whether or not the entered year was or will be a leap year. Examples of package use are included in the following documentation.

Correct Use

leap_year(1992)
leap_year(1993)

Incorrect Use

The user must enter only a single year as the argument. If multiple years are entered leap_year() will produce an error.

leap_year(c(1994,1995))

The argument entered must also only contain 4 characters.

leap_year(20050)

The argument entered must also be a number.

leap_year("Hello")


nheng91/LeapYear documentation built on May 25, 2019, 10:36 p.m.