view_apsim: Viewing an APSIM Classic file interactively

View source: R/view_apsimx.R

view_apsimR 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)



apsimx documentation built on Sept. 11, 2024, 5:42 p.m.