Skip to content

Commit 528739c

Browse files
authored
Merge pull request #12 from PecanProject/mvp-betydata
Move datapackage.json to repo root (Frictionless spec)
2 parents 65ca70d + a6f793c commit 528739c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+673619
-8
lines changed

.Rbuildignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
^.*.Rproj$
2+
^.Rproj.user$
3+
^README.Rmd$
4+
^LICENSE.md$
5+
^.github$
6+
^data-raw$
7+
^_pkgdown.yml$
8+
^docs$
9+
^pkgdown$
10+
^.lintr$
11+
^codecov.yml$
12+
^.pre-commit-config.yaml$
13+
^renv$
14+
^renv.lock$
15+
^betydata\.Rproj$
16+
^\.Rproj\.user$
17+
^CITATION\.cff$
18+
^vignettes/.*_files$
19+
^_quarto\.yml$
20+
^_site$
21+
^_freeze$
22+
^index\.qmd$
23+
^_publish\.yml$
24+
^datapackage\.json$
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Data correction
3+
about: Report an error in betydata and suggest a correction
4+
labels: data, correction
5+
---
6+
7+
### Summary
8+
<!-- Brief description of the issue -->
9+
10+
### Affected Record(s)
11+
12+
| Field | Value |
13+
|-------|-------|
14+
| Dataset | traitsview / species / other |
15+
| Record ID(s) | |
16+
| Column(s) | |
17+
18+
### Current Value
19+
<!-- What the data currently shows -->
20+
21+
### Suggested Correction
22+
<!-- What the value should be -->
23+
24+
### Source
25+
<!-- How you know the current value is wrong (publication, original data, etc.) -->
26+
- Citation/DOI:
27+
- Page/Table:
28+
- Additional evidence:
29+
30+
### Additional Context
31+
<!-- Any other relevant information -->
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Verified record report
3+
about: Report that you have verified a record matches its source
4+
labels: data, verification
5+
---
6+
7+
### Summary
8+
<!-- Which record(s) have you verified? -->
9+
10+
### Verified Record(s)
11+
12+
| Field | Value |
13+
|-------|-------|
14+
| Dataset | traitsview / other |
15+
| Record ID(s) | |
16+
17+
### Verification Details
18+
- Citation/DOI checked:
19+
- Page/Table/Figure:
20+
- Date verified:
21+
22+
### Confirmation
23+
- [ ] I have compared the record(s) to the original source
24+
- [ ] The values match the source publication
25+
- [ ] The `checked` value should be updated to `1` (passed)
26+
27+
### Notes
28+
<!-- Any discrepancies or observations -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
## Description
2+
<!-- Describe your changes in detail -->
3+
4+
## Related Issue(s)
5+
<!-- Link to issue(s) this PR addresses -->
6+
7+
## Type of Change
8+
<!-- Put an `x` in all boxes that apply -->
9+
- [ ] Bug fix (non-breaking change which fixes an issue)
10+
- [ ] New feature (non-breaking change which adds functionality)
11+
- [ ] Data update (changes to datasets)
12+
- [ ] Documentation update
13+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
14+
15+
## Checklist
16+
<!-- Put an `x` in all boxes that apply -->
17+
- [ ] I have run `devtools::check()` with no errors or warnings
18+
- [ ] I have updated NEWS.md if applicable
19+
- [ ] I have updated documentation if applicable
20+
- [ ] I have added/updated tests if applicable
21+
22+
## Data Changes (if applicable)
23+
<!-- If this PR modifies data, describe the changes -->
24+
- [ ] Data rebuilt from source using `data-raw/make-data.R`
25+
- [ ] datapackage.json updated
26+
- [ ] Row counts verified
27+
28+
## Additional Notes
29+
<!-- Any other information reviewers should know -->
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## Data Correction
2+
3+
### Summary
4+
<!-- Brief description of the correction -->
5+
6+
### Affected Record(s)
7+
8+
| Field | Value |
9+
|-------|-------|
10+
| Table | traitsview / species / other |
11+
| Record ID(s) | |
12+
| Column(s) | |
13+
14+
### Current Value
15+
<!-- What the data currently shows -->
16+
17+
### Corrected Value
18+
<!-- What the value should be -->
19+
20+
### Source / Evidence
21+
<!-- How you verified the correction (publication DOI, original data, etc.) -->
22+
- Citation/DOI:
23+
- Page/Table:
24+
25+
### Changes Made
26+
27+
- [ ] Edited CSV in `data-raw/csv/`
28+
- [ ] Ran `source("data-raw/make-data.R")` to rebuild `.rda` files
29+
- [ ] Verified correction in the rebuilt data
30+
- [ ] Updated `NEWS.md`
31+
32+
### Checklist
33+
34+
- [ ] I have compared the corrected value to the original source
35+
- [ ] `devtools::check()` passes with no errors

.github/workflows/R-CMD-check.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
on:
2+
push:
3+
branches: [main, develop]
4+
pull_request:
5+
branches: [main, develop]
6+
workflow_dispatch: # Allow manual triggers
7+
8+
name: R-CMD-check
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
R-CMD-check:
15+
runs-on: ${{ matrix.config.os }}
16+
17+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
config:
23+
- {os: macos-latest, r: 'release'}
24+
- {os: windows-latest, r: 'release'}
25+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
26+
- {os: ubuntu-latest, r: 'release'}
27+
- {os: ubuntu-latest, r: 'oldrel-1'}
28+
29+
env:
30+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
31+
R_KEEP_PKG_SOURCE: yes
32+
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- uses: quarto-dev/quarto-actions/setup@v2
37+
38+
- uses: r-lib/actions/setup-pandoc@v2
39+
40+
- uses: r-lib/actions/setup-r@v2
41+
with:
42+
r-version: ${{ matrix.config.r }}
43+
http-user-agent: ${{ matrix.config.http-user-agent }}
44+
use-public-rspm: true
45+
46+
- uses: r-lib/actions/setup-r-dependencies@v2
47+
with:
48+
extra-packages: any::rcmdcheck, local::.
49+
needs: check
50+
51+
- uses: r-lib/actions/check-r-package@v2
52+
with:
53+
upload-snapshots: true
54+
args: 'c("--no-manual", "--as-cran")'
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy Quarto site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pages: write
11+
12+
jobs:
13+
build-deploy:
14+
runs-on: ubuntu-latest
15+
env:
16+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Setup R
23+
uses: r-lib/actions/setup-r@v2
24+
with:
25+
use-public-rspm: true
26+
27+
- name: Install R dependencies
28+
uses: r-lib/actions/setup-r-dependencies@v2
29+
with:
30+
extra-packages: |
31+
local::.
32+
any::dplyr
33+
any::ggplot2
34+
any::knitr
35+
any::maps
36+
- name: Setup Quarto
37+
uses: quarto-dev/quarto-actions/setup@v2
38+
39+
- name: Render and deploy to gh-pages
40+
uses: quarto-dev/quarto-actions/publish@v2
41+
with:
42+
target: gh-pages
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
*.html
2+
.Rhistory
3+
.Rdata
4+
.RData
5+
.Ruserdata
6+
.Rproj.user
7+
*.tar.gz
8+
*.Rcheck/
9+
.DS_Store
10+
Thumbs.db
11+
.vscode/
12+
*.swp
13+
renv/library/
14+
renv/local/
15+
renv/cellar/
16+
renv/lock/
17+
renv/python/
18+
renv/sandbox/
19+
_site/
20+
_freeze/
21+
/.quarto/
22+
vignettes/*_files/

CITATION.cff

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
cff-version: 1.2.0
2+
title: "betydata: Public Data from the BETYdb Database"
3+
version: 0.1.0
4+
abstract: >-
5+
An R data package providing offline access to public plant trait and
6+
crop yield data from the BETYdb (Biofuel Ecophysiological Traits and
7+
Yields) database.
8+
license: BSD-3-Clause
9+
# doi: -- will be assigned by Zenodo on first github release
10+
message: >-
11+
If you use this data package, please cite both this software and
12+
the BETYdb paper (see preferred-citation below).
13+
type: dataset
14+
date-released: "2026-02-11"
15+
repository-code: https://github.com/PecanProject/betydata
16+
url: https://betydb.org
17+
keywords:
18+
- plant traits
19+
- crop yields
20+
- bioenergy
21+
- ecosystem modeling
22+
- BETYdb
23+
- PEcAn
24+
- ecological data
25+
- R data package
26+
authors:
27+
- given-names: David
28+
family-names: LeBauer
29+
email: dlebauer@arizona.edu
30+
affiliation: University of Arizona
31+
orcid: 'https://orcid.org/0000-0001-7228-053X'
32+
- given-names: Akash
33+
family-names: BV
34+
email: www.divinehome12@gmail.com
35+
affiliation: CMR Institute of Technology, Bengaluru
36+
preferred-citation:
37+
type: article
38+
title: >-
39+
BETYdb: a yield, trait, and ecosystem service database applied to
40+
second-generation bioenergy feedstock production
41+
authors:
42+
- given-names: David
43+
family-names: LeBauer
44+
- given-names: Rob
45+
family-names: Kooper
46+
- given-names: Patrick
47+
family-names: Mulrooney
48+
- given-names: Scott
49+
family-names: Rohde
50+
- given-names: Dan
51+
family-names: Wang
52+
- given-names: Stephen P.
53+
family-names: Long
54+
- given-names: Michael C.
55+
family-names: Dietze
56+
journal: GCB Bioenergy
57+
year: 2018
58+
volume: 10
59+
issue: 1
60+
start: 61
61+
end: 71
62+
doi: "10.1111/gcbb.12420"

DESCRIPTION

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,35 @@
11
Package: betydata
2-
Title: What the Package Does (One Line, Title Case)
3-
Version: 0.0.0.9000
4-
Authors@R:
5-
person("First", "Last", , "first.last@example.com", role = c("aut", "cre"))
6-
Description: What the package does (one paragraph).
7-
License: `use_mit_license()`, `use_gpl3_license()` or friends to pick a
8-
license
2+
Type: Package
3+
Title: Public Data from the BETYdb Database
4+
Version: 0.1.0
5+
Authors@R: c(
6+
person("David", "LeBauer", email = "dlebauer@arizona.edu", role = c("aut", "cre")),
7+
person("Akash B V", email = "www.divinehome12@gmail.com", role = "aut")
8+
)
9+
Description: An R data package providing offline access to public data from
10+
the BETYdb database (betydb.org). Includes plant traits, crop yields,
11+
and supporting metadata for bioenergy and ecosystem research. This
12+
package enables reproducible analyses without requiring database access.
13+
License: BSD_3_clause + file LICENSE
14+
URL: https://github.com/PecanProject/betydata,
15+
https://betydb.org
16+
BugReports: https://github.com/PecanProject/betydata/issues
17+
Depends:
18+
R (>= 4.1.0)
19+
Suggests:
20+
dplyr (>= 1.1.0),
21+
ggplot2,
22+
jsonlite,
23+
knitr,
24+
maps,
25+
quarto,
26+
rmarkdown,
27+
testthat (>= 3.0.0)
28+
VignetteBuilder: quarto
29+
SystemRequirements: Quarto command line tool (https://github.com/quarto-dev/quarto-cli)
930
Encoding: UTF-8
31+
LazyData: true
32+
LazyDataCompression: xz
1033
Roxygen: list(markdown = TRUE)
11-
RoxygenNote: 7.3.2
34+
RoxygenNote: 7.3.3
35+
Config/testthat/edition: 3

0 commit comments

Comments
 (0)