view_apsimx: Viewing an APSIM-X file interactively

View source: R/view_apsimx.R

view_apsimxR Documentation

Viewing an APSIM-X file interactively

Description

Generate an interactive viewer for an APSIM-X file

Usage

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

Arguments

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.

Value

a display with the APSIM file structure.

Note

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

Examples


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



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