powered by
Generate an interactive viewer for an APSIM file
view_apsim(file, src.dir, viewer = c("json", "react"), ...)
a file ending in .apsim to be inspected (XML)
directory containing the .apsim file to be inspected; defaults to the current working directory
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.
# NOT RUN { extd.dir <- system.file("extdata", package = "apsimx") ## View the structure of the APSIM-X simulation file view_apsim("Millet.apsim", src.dir = extd.dir) # } # NOT RUN { # }
Run the code above in your browser using DataLab