tests/testthat/setup_all.R

unlink(getWorkPath(), TRUE)
dir.create(getWorkPath())

if (getOption("patRoon.clearCache", FALSE))
    clearCache("all")

if (!file.exists(getTestDataPath()))
    dir.create(getTestDataPath())

if (doDATests())
{
    revertDAAnalyses(getDAAnaInfo())
    clearCache("featuresBruker")
}

options(datatable.auto.index = FALSE) # should make tests more reproducible
options(patRoon.MP.logPath = FALSE)

# HACK: sometimes plot isn't recognized as an S4 generic
# setGeneric("plot", function(x, y, ...) standardGeneric("plot"))
rickhelmus/patRoon documentation built on April 25, 2024, 8:15 a.m.