tests/testthat/test_main.R

source(file.path(rprojroot::find_package_root_file(), "tests/init_tests.R"))

test_that("invokeNPARC_allok", {
  results <- runNPARC(x = ATP_targets_stauro$temperature,
                      y = ATP_targets_stauro$relAbundance,
                      id = ATP_targets_stauro$uniqueID,
                      groupsAlt = ATP_targets_stauro$compoundConcentration,
                      dfType = "theoretical")

  expect_equal(results$pAdj, pAdj_ref, tolerance = 1e-6)

})

Try the NPARC package in your browser

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

NPARC documentation built on Nov. 8, 2020, 8:05 p.m.