view_apsimx | R Documentation |
Generate an interactive viewer for an APSIM-X file
view_apsimx(file, src.dir, viewer = c("json", "react"), ...)
file |
a file ending in .apsimx to be inspected (JSON) |
src.dir |
directory containing the .apsimx 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-X file using this method yet.
extd.dir <- system.file("extdata", package = "apsimx")
## View the structure of the APSIM-X simulation file
view_apsimx("Wheat.apsimx", src.dir = extd.dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.