diff --git a/articles/Catch_errors.html b/articles/Catch_errors.html index 9f847757..b7a2f5ad 100644 --- a/articles/Catch_errors.html +++ b/articles/Catch_errors.html @@ -154,9 +154,9 @@

Run the simulation## # A tibble: 3 × 9 ## N bias REPLICATIONS SIM_TIME RAM_USED SEED COMPLETED ERRORS ## <dbl> <dbl> <dbl> <chr> <chr> <int> <chr> <int> -## 1 10 0.061138 100 0.05s 69.2 Mb 1140350788 Tue Dec 10 17… 53 -## 2 20 0.014295 100 0.05s 69.3 Mb 312928385 Tue Dec 10 17… 52 -## 3 30 0.017927 100 0.04s 69.4 Mb 866248189 Tue Dec 10 17… 42 +## 1 10 0.061138 100 0.05s 69.2 Mb 1140350788 Tue Dec 10 21… 53 +## 2 20 0.014295 100 0.05s 69.3 Mb 312928385 Tue Dec 10 21… 52 +## 3 30 0.017927 100 0.04s 69.4 Mb 866248189 Tue Dec 10 21… 42 ## # ℹ 1 more variable: WARNINGS <int>

What you’ll immediately notice from this output object is that counts of the error and warning messages have been appended to the diff --git a/articles/Fixed_obj_fun.html b/articles/Fixed_obj_fun.html index 30d634e1..0fb83792 100644 --- a/articles/Fixed_obj_fun.html +++ b/articles/Fixed_obj_fun.html @@ -191,9 +191,9 @@

Exporting objects example## # A tibble: 3 × 6 ## N p REPLICATIONS SIM_TIME SEED COMPLETED ## <dbl> <dbl> <dbl> <chr> <int> <chr> -## 1 10 0.038 1000 0.23s 525310970 Tue Dec 10 17:30:12 2024 -## 2 20 0.05 1000 0.22s 529914981 Tue Dec 10 17:30:13 2024 -## 3 30 0.056 1000 0.25s 602604143 Tue Dec 10 17:30:13 2024 +## 1 10 0.038 1000 0.24s 525310970 Tue Dec 10 21:12:04 2024 +## 2 20 0.05 1000 0.23s 529914981 Tue Dec 10 21:12:04 2024 +## 3 30 0.056 1000 0.26s 602604143 Tue Dec 10 21:12:04 2024

By placing objects in a list and passing this to fixed_objects, the objects are safely exported to all relevant functions. Furthermore, running this code in parallel will also diff --git a/articles/Saving-results.html b/articles/Saving-results.html index 47e4d1ca..87fd247e 100644 --- a/articles/Saving-results.html +++ b/articles/Saving-results.html @@ -143,14 +143,14 @@

Option: save = TRUE (Defa ## Design: 2/3; Replications: 1000; RAM Used: 69 Mb; Total Time: 0.18s ## Conditions: N=20 ## -## Design: 3/3; Replications: 1000; RAM Used: 69 Mb; Total Time: 0.35s +## Design: 3/3; Replications: 1000; RAM Used: 69 Mb; Total Time: 0.36s ## Conditions: N=30 ##

Check that temporary file still exists.

 files <- dir()
 files[grepl('SIMDESIGN', files)]
-
## [1] "SIMDESIGN-TEMPFILE_fv-az1240-142.rds"
+
## [1] "SIMDESIGN-TEMPFILE_fv-az979-39.rds"

Notice here that the simulation stopped at 67% because the third design condition threw too many consecutive errors (this is a built-in fail-safe in SimDesign). To imitate a type of crash/power @@ -170,7 +170,7 @@

Option: save = TRUE (Defa res <- runSimulation(Design, replications = 1000, save=TRUE, filename='my-simple-sim', generate=Generate, analyse=Analyse, summarise=Summarise)
## 
-## Design: 3/3;   Replications: 1000   Total Time: 0.35s 
+## Design: 3/3;   Replications: 1000   Total Time: 0.36s 
 ##  Conditions: N=30
 ## 

Check which files exist.

@@ -215,7 +215,7 @@