tests/run_tests.R

library(bayesPop)
source('test_functions.R')

CRAN <- TRUE

test.expressions()

if(!CRAN) {
# longer tests 
    warn <- options('warn')
    options(warn=2)
    test.expressions(parallel = TRUE)
	test.prediction()
	test.prediction(parallel = TRUE)
	test.prediction.with.prob.migration()
	test.prediction.with.prob.migration(parallel = TRUE)
	test.expressions.with.VE(map=FALSE)
	test.regional.aggregation()
	test.regional.aggregation(parallel = TRUE)
	test.life.table()
	test.life.table(parallel = TRUE)
	test.adjustment()
	test.subnat()
	options(warn=warn$warn)
	test.subnat.with.subnat.tfr.e0()
	test.prediction.with.patterns()
	test.expressions.with.VE(map=TRUE, parallel = TRUE) # generates warnings
	test.age.specific.migration()
}

Try the bayesPop package in your browser

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

bayesPop documentation built on Aug. 10, 2023, 1:10 a.m.