it will run iterate_model in parallel if parallel = T and otherwise will just run iterate_model
Need to keep the following in mind when doing this:
[ ] Running in parallel with parLappy() requires "creating a cluster" and exporting the objects and functions need to run.
[ ] Test what happens when you provide a list vs df object.
Maybe is should look like this:
run_model <- function(ini = list of file paths,
names = names of scenarios,
parameters = parameter sets,
iterate_hector() arguments)
The function will return what? -- Maybe a single large data frame (model result).
For future steps can split the data frame by scenario name before computing scores.
We can call this function
run_model
for now...it will run
iterate_model
in parallel ifparallel = T
and otherwise will just runiterate_model
Need to keep the following in mind when doing this:
parLappy()
requires "creating a cluster" and exporting the objects and functions need to run.list
vsdf
object.Maybe is should look like this:
The function will return what? -- Maybe a single large data frame (model result). For future steps can split the data frame by scenario name before computing scores.