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
Repository
A R package for APSIM Next Generation
Basic Info
- Host: GitHub
- Owner: byzheng
- License: other
- Language: R
- Default Branch: master
- Homepage: https://rapsimng.bangyou.me/
- Size: 5.84 MB
Statistics
- Stars: 10
- Watchers: 2
- Forks: 5
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
rapsimng
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
- Website: http://www.bangyou.me
- Repositories: 40
- Profile: https://github.com/byzheng
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
Top Committers
| Name | 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
- Homepage: https://rapsimng.bangyou.me/
- Documentation: http://cran.r-project.org/web/packages/rapsimng/rapsimng.pdf
- License: MIT + file LICENSE
-
Latest release: 0.4.4
published over 2 years ago
Rankings
Maintainers (1)
Dependencies
- 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
- 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
- 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