R Under development (unstable) (2024-11-08 r87310 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(bayesMig) Loading required package: bayesTFR > source('test_functions.R') > > #options(error=quote(dump.frames("last.dump", TRUE))) > > cran <- TRUE > > test.run.annual.simulation() <=== Starting test of running annual migration MCMC for US states ==== Starting Bayesian Hierarchical Model Migration. ======================================================== Initialize simulation - 2 chain(s) in total. Chain nr. 1 ************ Starting values: mu a -0.1 1.1 Store initial values into mc1 Flushing results into disk. Start sampling - 30 iterations in total. Iteration: 10 -- Sat Nov 9 04:05:45 2024 Iteration: 20 -- Sat Nov 9 04:05:45 2024 Iteration: 30 -- Sat Nov 9 04:05:45 2024 Flushing results into disk. Chain nr. 2 ************ Starting values: mu a 0.1 5.0 Store initial values into mc2 Flushing results into disk. Start sampling - 30 iterations in total. Iteration: 10 -- Sat Nov 9 04:05:46 2024 Iteration: 20 -- Sat Nov 9 04:05:46 2024 Iteration: 30 -- Sat Nov 9 04:05:46 2024 Flushing results into disk. Results stored in C:\Users\CRAN\Documents\RtmpIZxbHx\file2278046803da2 Simulation successfully finished!!! ==== Test of running annual migration MCMC for US states OK.===> <=== Starting test of running annual projections ==== Loading chain 1 from disk. (mcmc.list[[ 1 ]]). Loading chain 2 from disk. (mcmc.list[[ 2 ]]). Prediction from 2018 until 2050 (i.e. 33 projections) Storing thinned mcmc: Storing country-independent parameters ...done. Storing country-specific parameters ...done. Migration projection trajectory 1 Migration projection trajectory 2 Migration projection trajectory 3 Migration projection trajectory 4 Migration projection trajectory 5 Migration projection trajectory 6 Migration projection trajectory 7 Migration projection trajectory 8 Migration projection trajectory 9 Migration projection trajectory 10 Migration projection trajectory 11 Migration projection trajectory 12 Migration projection trajectory 13 Migration projection trajectory 14 Migration projection trajectory 15 Migration projection trajectory 16 Migration projection trajectory 17 Migration projection trajectory 18 Migration projection trajectory 19 Migration projection trajectory 20 Migration projection trajectory 21 Migration projection trajectory 22 Migration projection trajectory 23 Migration projection trajectory 24 Migration projection trajectory 25 Migration projection trajectory 26 Migration projection trajectory 27 Migration projection trajectory 28 Migration projection trajectory 29 Migration projection trajectory 30 Migration projection trajectory 31 Migration projection trajectory 32 Migration projection trajectory 33 Migration projection trajectory 34 Migration projection trajectory 35 Migration projection trajectory 36 Migration projection trajectory 37 Migration projection trajectory 38 Migration projection trajectory 39 Migration projection trajectory 40 Creating summary files ... Projection summaries stored into: C:\Users\CRAN\Documents\RtmpIZxbHx\file2278046803da2/predictions/projection_summary_user_friendly.csv C:\Users\CRAN\Documents\RtmpIZxbHx\file2278046803da2/predictions/projection_summary.csv Prediction stored into C:\Users\CRAN\Documents\RtmpIZxbHx\file2278046803da2/predictions ==== Test of running annual projections OK.===> <=== Starting test of analyzing output of annual projections ==== ==== Test of analyzing output of annual projections OK.===> > > if(!cran) { + test.include.code.and.last.observed() + test.run.annual.national.simulation() + test.run.annual.national.simulation.with.interpolation() + test.run.national.simulation() + test.run.annual.simulation(parallel = TRUE) + test.run.national.simulation(parallel = TRUE) + } > > #load("last.dump.rda"); debugger() > > proc.time() user system elapsed 1.98 0.59 2.56