tests/testthat/test_sampleParsSimpar.R

context("sampleParsSimpar")

### waiting for NMdata 0.1.8 on CRAN
if(F){
    test_that("basic",{

        loadres <- requireNamespace("simpar",quietly=TRUE)
        if(!loadres) {
            ## message("simpar not available. Please install from github or MPN.")
            expect_true(TRUE)
        } else {

            fileRef <- "testReference/sampleParsSimpar_01.rds"

            file.mod <- "testData/nonmem/xgxr021.mod"
            pars <- sampleParsSimpar(file.mod,nsim=10,format="wide",as.fun="data.table",seed.R=23)

            expect_equal_to_reference(pars,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.