tests/testthat/test_paramSummary.R

context("Performing dataset wide parameter selection")

# The eicParamEsts object was created by running the code within
# inst/makeTestData/
Autotuner <- readRDS(system.file("extdata/AutotunerObj.rds", package="Autotuner"))
eicTable <- readRDS(system.file('extdata/eicParamsEsts.rds',
                                package = "Autotuner"))

returnParams <- returnParams(eicTable, Autotuner)

test_that(desc = "Testing Max Peakwidth Estimate",
          code = {
              expect_equal(class(returnParams), "list")
              expect_equal(length(returnParams), 2)
              expect_equal(dim(returnParams$ticParams), c(3,2))
              expect_equal(dim(returnParams$eicParams), c(7,4))
          })

Try the Autotuner package in your browser

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

Autotuner documentation built on Nov. 8, 2020, 5:59 p.m.