if (FALSE) {
## It is not trivial to produce a reproducible example
## because the model and file versions need to align.
## The steps are:
## 1. Get model:
## wheat <- get_apsimx_json(model = "Wheat", wrt.dir = tmp.dir)
## 2. Create file that matches current model version
## 3. Edit the file by inserting the 'replacements' node
## insert_replacement_node("Wheat.apsimx", rep.node = wheat)
}
Run the code above in your browser using DataLab