The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
rapsimng package is designed to modify and run the *.apsimx simulations using R in APSIM Next Generation.
Install from CRAN.
install.packages('rapsimng')
Install the developing version from Github.
::install_github('byzheng/rapsimng') remotes
The wheat.apsimx
in the validation dataset of APSIM NG
is used as an example. Function read_apsimx
is used to read
*.apsimx
file through jsonlite::read_json
and
returns as a list.
# Read Wheat.apsimx file with `read_apsimx` which returns a list of json results.
<- system.file("extdata/wheat.apsimx", package = "rapsimng")
file <- read_apsimx(file) m
A node in the apsimx file can be found using the path specification in APSIM NG.
<- search_path(m,
potential path = '[Structure].BranchingRate.PotentialBranchingRate.Vegetative.PotentialBranchingRate')
potential
<- potential$node
new_model $XProperty <- 'NewVariable' new_model
<- replace_model(m, potential$path, new_model) new
write_apsimx(new, tempfile(fileext = '.json'))
A function run_models
is wrapped for APSIM NG
Models.exe
in the command line and can be called to run
apsimx files. See APSIM website for
documentation.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.