View source: R/apsim_classic.R
apsim | R Documentation |
Run apsim from R. It's for Windows only. It uses ‘shell’.
apsim(
file = "",
src.dir = ".",
silent = FALSE,
value = "report",
cleanup = FALSE,
simplify = TRUE
)
file |
file name to be run (the extension .apsim is optional) |
src.dir |
directory containing the .apsim file to be run (defaults to the current directory) |
silent |
whether to print messages from apsim simulation |
value |
how much output to return: |
cleanup |
logical. Whether to delete the .out and .sum files generated by APSIM. Default is FALSE. |
simplify |
whether to return a single data frame when multiple simulations are present. If FALSE it will return a list. |
Run an APSIM (7.x) ‘Classic’ Simulation
A valid apsim file can be run from within R. The main goal is to make running APSIM-X simple, especially for large scale simulations or parameter optimization
This function returns a data frame with APSIM output, but it depends on the argument ‘value’ above.
## See function 'apsim_example'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.