view_apsim {apsimx}R Documentation

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.

Note

I do not know how to edit an APSIM file using this method yet.

Examples


extd.dir <- system.file("extdata", package = "apsimx")
## View the structure of the APSIM-X simulation file
view_apsim("Millet.apsim", src.dir = extd.dir)



[Package apsimx version 2.6.2 Index]