R/assert_date.R

dal_is_date <- function(x){
    any(class(x) %in% "Date")
}


assert_date <- function( x , ...){

    if ( !all( map_lgl(x , dal_is_date))){
        warning(dal_msg$date$date)
        return(NULL)
    }

    return(NULL)


}
CG1122/DAL documentation built on May 8, 2019, 9:28 a.m.