tests/testsuite/test_demos.R

demos <- list.files(path="../demo",pattern=".*\\.R$",full.names = TRUE)
oreadline <- readline
for(f in demos){
    test_that(paste0("demo ", gsub("^.*/","",f), "runs"), {
        cat(paste0("running demo ", gsub("^.*/","",f), "\n"))
        readline <- function(x) cat(paste0(x," \n"))
        source(f)
    })
}
readline <- oreadline
options(debugSQL=F)
Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.