powered by
Retreives the json replacement file for a specific model
get_apsimx_json(model = "Wheat", wrt.dir = ".", cleanup = FALSE)
a model (e.g. ‘Wheat’ or ‘Maize’)
directory to save the JSON file (default is the current directory)
whether to delete the JSON file
a list read through the jsonlite package
Get APSIM-X Model Replacement from github
insert_replacement_node
# NOT RUN { tmp.dir <- tempdir() wheat <- get_apsimx_json(model = "Wheat", wrt.dir = tmp.dir) # } # NOT RUN { # }
Run the code above in your browser using DataLab