tests/testthat/test-nocran05_ppc.R

test_that("PPC", {
    # LONG TO COMPUTE AND/OR INPUT FILE NOT STORED FOR CRAN
    # 'skip_on_cran: files not in fixtures because of size > 1MB'
    testthat::skip_on_cran()
    cPRZ_ITfit <- readRDS(test_path("fixtures", "cPRZ_ITfit.rds"))
    cPRZ_SDfit <- readRDS(test_path("fixtures", "cPRZ_SDfit.rds"))
    vPRZ_ITfit <- readRDS(test_path("fixtures", "vPRZ_ITfit.rds"))
    vPRZ_SDfit <- readRDS(test_path("fixtures", "vPRZ_SDfit.rds"))
    
    cPRZ_ITppc <- ppc(cPRZ_ITfit)
    cPRZ_SDppc <- ppc(cPRZ_SDfit)
    vPRZ_ITppc <- ppc(vPRZ_ITfit)
    vPRZ_SDppc <- ppc(vPRZ_SDfit)
    
    plot(cPRZ_ITppc)
    plot(cPRZ_SDppc)
    plot(vPRZ_ITppc)
    plot(vPRZ_SDppc)
    
})

Try the morseTKTD package in your browser

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

morseTKTD documentation built on June 8, 2025, 10:28 a.m.