rapsimng

A R package for APSIM Next Generation

https://github.com/byzheng/rapsimng

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 3 committers (66.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.5%) to scientific vocabulary

Keywords

apsim apsimx r
Last synced: 10 months ago · JSON representation

Repository

A R package for APSIM Next Generation

Basic Info
Statistics
  • Stars: 10
  • Watchers: 2
  • Forks: 5
  • Open Issues: 0
  • Releases: 1
Topics
apsim apsimx r
Created over 7 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog License Code of conduct

README.md

rapsimng

R-CMD-check

rapsimng package is designed to modify and run the *.apsimx simulations using R in APSIM Next Generation.

Features

  • Find elements in the *.apsimx file

Installation

Install from CRAN.

r install.packages('rapsimng')

Install the developing version from Github.

r remotes::install_github('byzheng/rapsimng')

Read APSIMX file

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.

```r

Read Wheat.apsimx file with read_apsimx which returns a list of json results.

file <- system.file("extdata/wheat.apsimx", package = "rapsimng") m <- read_apsimx(file)

```

Search by of APSIM NG

A node in the apsimx file can be found using the path specification in APSIM NG. r potential <- search_path(m, path = '[Structure].BranchingRate.PotentialBranchingRate.Vegetative.PotentialBranchingRate') potential

Modify a found model

r new_model <- potential$node new_model$XProperty <- 'NewVariable'

Replace the new model

r new <- replace_model(m, potential$path, new_model)

Save into a new apsimx file

r write_apsimx(new, tempfile(fileext = '.json'))

Run apsimx file

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.

Owner

  • Name: Bangyou Zheng
  • Login: byzheng
  • Kind: user

Bangyou is a research scientist at CSIRO. His research interests include crop modelling, crop adaptation, high throughput phenotyp, big data and R programming.

GitHub Events

Total
  • Watch event: 1
  • Push event: 10
Last Year
  • Watch event: 1
  • Push event: 10

Committers

Last synced: 12 months ago

All Time
  • Total Commits: 154
  • Total Committers: 3
  • Avg Commits per committer: 51.333
  • Development Distribution Score (DDS): 0.032
Past Year
  • Commits: 7
  • Committers: 2
  • Avg Commits per committer: 3.5
  • Development Distribution Score (DDS): 0.143
Top Committers
Name Email Commits
Bangyou Zheng b****g@c****u 149
Bangyou Zheng z****a@s****u 4
Clzuy 1****y 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 4
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 days
  • Total issue authors: 0
  • Total pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.5
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 days
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • byzheng (3)
  • Clzuy (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 257 last-month
  • Total docker downloads: 21,613
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 6
  • Total maintainers: 1
cran.r-project.org: rapsimng

APSIM Next Generation

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 257 Last month
  • Docker Downloads: 21,613
Rankings
Docker downloads count: 0.6%
Forks count: 12.2%
Stargazers count: 19.3%
Dependent repos count: 23.8%
Average: 25.2%
Dependent packages count: 28.7%
Downloads: 66.5%
Maintainers (1)
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • DBI * imports
  • RSQLite * imports
  • dplyr * imports
  • jsonlite * imports
  • magrittr * imports
  • rlang * imports
  • tibble * imports
  • knitr * suggests
  • methods * suggests
  • rmarkdown * suggests
  • testthat * suggests
  • tidyverse * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/upload-artifact main composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
.github/workflows/pkgdown.yaml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-tinytex v1 composite