R Under development (unstable) (2024-11-06 r87293 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(bayesTFR) > source('test_functions.R') > > cran <- TRUE > > wpp <- 2019 > test.load.UNtfr(wpp) <=== Starting test of loading UN TFR file (WPP 2019) ==== Loading required package: wpp2019 ==== Test of loading UN TFR file OK.===> > test.load.UNlocations(wpp) <=== Starting test of loading WPP location file (WPP 2019) ==== ==== Test of loading WPP location file OK.===> <=== Starting test of loading WPP location file with my.locations.file (WPP 2019) ==== ==== Test of loading WPP location file with my.locations.file OK.===> > test.create.tfr.matrix(wpp) <=== Starting test of creating TFR matrix (WPP 2019) ==== ==== Test of creating TFR matrix OK.===> > test.load.UNtfr.and.my.tfr.file() <=== Starting test of loading UN TFR file and my_tfr_file ==== ==== Test of loading UN TFR file and my_tfr_file OK.===> > test.existing.simulation() <=== Starting test of retrieving Phase II MCMC results ==== ==== Test of retrieving Phase II MCMC results OK.===> > > ## disable the following tests when submitting to CRAN > ## to speed-up the checking procedure > if(!cran) { + test.DLcurve() + test.TFRtrajectories() + test.plot.density() + test.get.parameter.traces() + test.median.adjust() + test.plot.map() + test.estimate.mcmc.with.suppl.data() + test.run.mcmc.simulation(compression='xz') + test.imputation() + test.thinned.simulation(compression='bz') + test.run.mcmc.simulation.auto() + test.run.mcmc.simulation.auto.parallel() + test.plot.all() + test.reproduce.simulation() + test.subnational.predictions() + for (wpp in c(2019, 2024)){ + test.run.mcmc.simulation(wpp.year = wpp) + test.run.mcmc.simulation.with.uncertainty(wpp.year = wpp) + test.thinned.simulation(wpp.year = wpp) + test.run.annual.simulation(wpp.year = wpp) + } + for(wpp in rev(c(2010, 2012, 2015, 2017, 2024))) { # these are either suggested packages or not on CRAN + test.load.UNtfr(wpp) + test.load.UNlocations(wpp) + test.create.tfr.matrix(wpp) + } + } > > proc.time() user system elapsed 1.71 0.89 2.57