validate_dates: Validate Dates

Description Usage Arguments Value Examples

Description

A simple helper function that checks if dates given as arguments to others functions in this package will be accepted by the host as parameters to the HTTP POST request. Especially check if: - The date format is dd/mm/yyyy - The diference between end_date and start_date is less than or equal 3 years.

Usage

1
validate_dates(start_date, end_date)

Arguments

start_date

Character vector of length one formatted as dd/mm/yyyy

end_date

Character vector of length one formatted as dd/mm/yyyy

Value

Rise an error in given invalid dates

Examples

1
## Not run: validate_dates('01/01/2015', '31/12/2015')

blnash508/cfm documentation built on May 30, 2019, 4:31 p.m.