if (FALSE) {
# store results (default behaviour)
sim <- runSimulation(..., store_results = TRUE)
SimResults(sim)
# store results to drive if RAM issues are present
obj <- runSimulation(..., save_results = TRUE)
# row 1 results
row1 <- SimResults(obj, 1)
# rows 1:5, stored in a named list
rows_1to5 <- SimResults(obj, 1:5)
# all results
rows_all <- SimResults(obj)
}
Run the code above in your browser using DataLab