timeseriesdb icon indicating copy to clipboard operation
timeseriesdb copied to clipboard

add checks on valid_on to read methods

Open HomoCodens opened this issue 3 years ago • 1 comments

valid_on must be a vector of length 1 that is either a Date or an yyyy-mm-dd string.

How would we best/most elegantly enforce this?

HomoCodens avatar Jan 24 '22 15:01 HomoCodens

Actually, it may now have to be a Date at least when it is passed to dbQuoteLiteral. See #250.

Currently it is documented thusly:

#' @param valid_on \strong{character} representation of a date in the form of 'YYYY-MM-DD'. valid_on selects the
#' version of a time series that is valid at the specified time.

HomoCodens avatar Jan 24 '22 15:01 HomoCodens