Write the ga_model functions to a file

ga_model_write(model, filepath = "ga_model.R")

Arguments

model

The ga_model object to extract functions from to write, or a filepath to a model

filepath

The filepath to write the functions to

Examples


if (FALSE) {

decomp_ga <- ga_model_example("decomp_ga.gamr")
ga_model_write(decomp_ga, "a_file.R")
}