inst/unitTests/test_MetReport.R

######## Test MetReportNames ###########
test_MetReport <- function (){
    data(exampleAMDISReport)
    f <- unzip(system.file("extdata/130513_REF_SOL2_2_50_50_1.CDF.zip", package = "Metab"))
    results <- MetReport(f, singleFile = TRUE, AmdisReport = exampleAMDISReport, abundance = "Area", save = FALSE)
    checkEqualsNumeric(as.numeric(results[2,2]), 2801759237)
}

Try the Metab package in your browser

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

Metab documentation built on Nov. 8, 2020, 5:36 p.m.