view_apsim | R Documentation |
Generate an interactive viewer for an APSIM file
view_apsim(file, src.dir, viewer = c("json", "react"), ...)
file |
a file ending in .apsim to be inspected (XML) |
src.dir |
directory containing the .apsim file to be inspected; defaults to the current working directory |
viewer |
either “json” or “react”. |
... |
additional arguments passed to either ‘jsonedit’ or ‘reactjson’. These are functions in package listviewer. |
a display with the APSIM file structure.
I do not know how to edit an APSIM file using this method yet.
extd.dir <- system.file("extdata", package = "apsimx")
## View the structure of the APSIM-X simulation file
view_apsim("Millet.apsim", src.dir = extd.dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.