if (FALSE) { # rlang::is_installed(c("admiral", "callr", "covr", "dplyr"))
path <- system.file("examples", "ady.mustache", package = "mighty.component")
x <- get_test_component(
component = path,
params = list(domain = "adae", variable = "ASTDY", date = "ASTDT"),
check_coverage = FALSE
)
adae <- data.frame(
TRTSDT = as.Date("2024-01-01"),
ASTDT = as.Date(c("2024-01-01", "2024-01-10"))
)
x$assign("adae", adae)$eval()
x$get("adae")
x$percent_coverage
x$close()
}
Run the code above in your browser using DataLab