Learn R Programming

apsimx (version 2.2)

view_apsim: Viewing an APSIM Classic file interactively

Description

Generate an interactive viewer for an APSIM file

Usage

view_apsim(file, src.dir, viewer = c("json", "react"), ...)

Arguments

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.

Value

a display with the APSIM file structure.

Examples

Run this code
# 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