tests/test_issue_7.R

library(climdex.pcic)
library(RUnit)

climdex.pcic.test.one.column.dates <- function() {
    ci <- climdexInput.csv(tmax.file='single_date_field_tmax.csv',
                           tmin.file='single_date_field_tmin.csv',
                           prec.file='single_date_field_prec.csv',
                           date.types=list(list(fields=c("date"), format="%Y-%j")))
    checkTrue(inherits(ci, 'climdexInput'))
}

Try the climdex.pcic package in your browser

Any scripts or data that you put into this service are public.

climdex.pcic documentation built on March 26, 2020, 7:17 p.m.