tests/testthat/test-PCR.R

context("PCR")

test_that("PCR works", {
  expect_is(PCR_reconstruction(NPannual, NPpc, start.year = 1200),
            "list")
})

test_that("PCR cross-validation works", {
  expect_is(cvPCR(NPannual, NPpc, start.year = 1200), "list")
})

test_that("PCR ensemble works", {
  expect_is(PCR_reconstruction(NPannual, list(NPpc, NPpc[, 1:2]), start.year = 1200), "list")
})

test_that("PCR ensemble cross-validation works", {
  expect_is(cvPCR(NPannual, list(NPpc, NPpc[, 1:2]), start.year = 1200), "list")
})

Try the ldsr package in your browser

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

ldsr documentation built on May 4, 2020, 5:06 p.m.