tests/testthat/test_simPopEtas.R

context("simPopEtas")

## unloadNamespace("NMsim")
## unloadNamespace("NMdata")
## load_all("~/wdirs/NMdata")
## load_all()

## library(NMdata)


library(data.table)
data.table::setDTthreads(1) 


NMdataConf(reset=T)
test_that("Basic",{
    fileRef <- "testReference/simPopEtas_01.rds"
    ## file.mod <- "../../inst/examples/nonmem/xgxr022.mod"
    file.mod <- "testData/nonmem/xgxr025.mod"
    res <- simPopEtas(file.mod,N=10,seed=4)

    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.