tests/testthat/helper-transition.R

# temp_idf {{{
temp_idf <- function(ver, ...) {
    idf <- empty_idf(ver)

    l <- tryCatch(list(...), error = function(e) 1L)

    if (length(l)) with_option(list(validate_level = "draft"), idf$add(...))

    idf$save(tempfile(fileext = ".idf"))
    idf
}
# }}}

# vim: set fdm=marker:
hongyuanjia/eplusr documentation built on Feb. 14, 2024, 5:38 a.m.