tests/testthat/test_NMreadParsWide.R

context("NMreadParsWide")

if(F){
    file.mod <- "testData/nonmem/xgxr021.mod"
    pars <- sampleParsSimpar(file.mod,nsim=10,format="wide",as.fun="data.table",seed.R=23)
    saveRDS(pars,"testData/data/xgxr021_parsWide.rds")
}

test_that("basic",{

    fileRef <- "testReference/NMreadParsWide_01.rds"

    parsWide <- readRDS("testData/data/xgxr021_parsWide.rds")
    res <- readParsWide(parsWide)

    expect_equal_to_reference(res,fileRef)
    
})

Try the NMsim package in your browser

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

NMsim documentation built on Nov. 2, 2024, 9:06 a.m.