R Under development (unstable) (2025-02-20 r87772 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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(bayesPop) Loading required package: bayesTFR Loading required package: bayesLife Loading required package: MortCast Loading required package: wpp2017 > source('test_functions.R') > > CRAN <- TRUE > > test.expressions() <=== Starting test of Population expressions ==== Loading required package: wpp2019 Prediction stored into D:\temp\2025_02_21_21_20_17_1151\RtmpE1vRPR\file318a029127de6/predictions Creating summary file for expression PXXX[1] / PXXX ... Stored into: D:\temp\2025_02_21_21_20_17_1151\RtmpE1vRPR\file318a029127de6/projection_summary_expression.csv Creating summary file for expression GXXX[1:10] ... Stored into: D:\temp\2025_02_21_21_20_17_1151\RtmpE1vRPR\file318a029127de6/projection_summary_expression.csv Aggregations stored into D:\temp\2025_02_21_21_20_17_1151\RtmpE1vRPR\file318a029127de6/aggregations_country Creating summary file for expression PXXX_M / P900_M ... Stored into: D:\temp\2025_02_21_21_20_17_1151\RtmpE1vRPR\file318a029127de6/projection_summary_expression.csv ==== Test of Population expressions OK.===> > > 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(mig.age.method = NULL) # default is fdmp (will generate a warning) + test.subnat.with.subnat.tfr.e0() + test.prediction.with.patterns() + test.expressions.with.VE(map=TRUE, parallel = TRUE) # generates warnings + test.age.specific.migration() + for(yr in c(2024, 2022, 2019)) + test.different.migration.methods(wpp.year = yr, annual = FALSE) + for(yr in c(2024, 2022)) + test.different.migration.methods(wpp.year = yr) + test.probabilistic.fdmp() + test.probabilistic.fdmp(annual = FALSE) + } > > proc.time() user system elapsed 12.67 0.67 13.32