Skip to content

Commit 6d48194

Browse files
authored
Merge pull request #141 from ropensci/back_on_cran
Bump to v0.5.2: CITATION + DESCRIPTION Updates, Docs Improvements, and Bug Fixes
2 parents 1c6f7a4 + ae80815 commit 6d48194

17 files changed

+421
-145
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ vignettes/cache
1919
^codemeta\.json$
2020
^CITATION\.cff$
2121
^\.github$
22+
^README\.Rmd$

.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+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
name: R-CMD-check.yaml
9+
10+
permissions: read-all
11+
12+
jobs:
13+
R-CMD-check:
14+
runs-on: ${{ matrix.config.os }}
15+
16+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
config:
22+
- {os: macos-latest, r: 'release'}
23+
- {os: windows-latest, r: 'release'}
24+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
25+
- {os: ubuntu-latest, r: 'release'}
26+
- {os: ubuntu-latest, r: 'oldrel-1'}
27+
28+
env:
29+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
30+
R_KEEP_PKG_SOURCE: yes
31+
TZ: UTC
32+
EOL_CYPHER_KEY: ${{ secrets.EOL_CYPHER_KEY }}
33+
ENTREZ_KEY: ${{ secrets.ENTREZ_KEY }}
34+
35+
steps:
36+
- uses: actions/checkout@v4
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
49+
needs: check
50+
51+
- uses: r-lib/actions/check-r-package@v2
52+
with:
53+
upload-snapshots: true
54+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.github/workflows/r_cmd_check.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

CITATION.cff

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ message: 'To cite package "traits" in publications use:'
88
type: software
99
license: MIT
1010
title: 'traits: Species Trait Data from Around the Web'
11-
version: 0.5.1
12-
abstract: Species trait data from many different sources, including sequence data
13-
from 'NCBI' (<https://www.ncbi.nlm.nih.gov/>), plant trait data from 'BETYdb', data
14-
from 'EOL' 'Traitbank', 'Birdlife' International, and more.
11+
version: 0.5.2
12+
abstract: Species trait data from many sources, including sequence data from 'NCBI'
13+
(<https://www.ncbi.nlm.nih.gov/>), plant traits from 'BETYdb', and data from 'EOL
14+
Traitbank' and 'Birdlife International'.
1515
authors:
1616
- family-names: LeBauer
1717
given-names: David
@@ -29,8 +29,32 @@ authors:
2929
given-names: Chris
3030
- family-names: Harris
3131
given-names: David
32+
preferred-citation:
33+
type: manual
34+
title: 'traits: Species Trait Data from Around the Web'
35+
authors:
36+
- family-names: LeBauer
37+
given-names: David
38+
email: dlebauer@gmail.com
39+
orcid: https://orcid.org/0000-0001-7228-053X
40+
- family-names: Chamberlain
41+
given-names: Scott
42+
email: myrmecocystus@gmail.com
43+
orcid: https://orcid.org/0000-0003-1444-9135
44+
- family-names: Foster
45+
given-names: Zachary
46+
- family-names: Bartomeus
47+
given-names: Ignasi
48+
- family-names: Black
49+
given-names: Chris
50+
- family-names: Harris
51+
given-names: David
52+
year: '2025'
53+
notes: R package version 0.5.2, https://github.com/ropensci/traits, https://doi.org/10.5281/zenodo.11224037
54+
url: https://docs.ropensci.org/traits/
3255
repository-code: https://github.com/ropensci/traits
3356
url: https://docs.ropensci.org/traits/
57+
date-released: '2025-04-10'
3458
contact:
3559
- family-names: LeBauer
3660
given-names: David
@@ -42,6 +66,10 @@ keywords:
4266
- web-services
4367
- species
4468
- taxonomy
69+
- biodiversity
70+
- ecology
71+
- environmental-data
72+
- species-traits
4573
- api-client
4674
- r
4775
- r-package

DESCRIPTION

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,51 @@
11
Package: traits
22
Title: Species Trait Data from Around the Web
3-
Description: Species trait data from many different sources, including
4-
sequence data from 'NCBI' (<https://www.ncbi.nlm.nih.gov/>),
5-
plant trait data from 'BETYdb', data from 'EOL' 'Traitbank',
6-
'Birdlife' International, and more.
7-
Version: 0.5.1
3+
Version: 0.5.2
84
Authors@R: c(
9-
person("David", "LeBauer", role = c("aut", "cre"),
10-
email = 'dlebauer@gmail.com',
11-
comment = c(ORCID = "0000-0001-7228-053X")),
12-
person("Scott", "Chamberlain", role = c("aut"),
13-
email = "myrmecocystus@gmail.com",
14-
comment = c(ORCID = "0000-0003-1444-9135")),
5+
person("David", "LeBauer", , "dlebauer@gmail.com", role = c("aut", "cre"),
6+
comment = c(ORCID = "0000-0001-7228-053X")),
7+
person("Scott", "Chamberlain", , "myrmecocystus@gmail.com", role = "aut",
8+
comment = c(ORCID = "0000-0003-1444-9135")),
159
person("Zachary", "Foster", role = "aut"),
1610
person("Ignasi", "Bartomeus", role = "aut"),
1711
person("Chris", "Black", role = "aut"),
1812
person("David", "Harris", role = "aut"),
1913
person("Rupert", "Collins", role = "ctb")
2014
)
15+
Description: Species trait data from many sources, including sequence data
16+
from 'NCBI' (<https://www.ncbi.nlm.nih.gov/>), plant traits from
17+
'BETYdb', and data from 'EOL Traitbank' and 'Birdlife International'.
2118
License: MIT + file LICENSE
2219
URL: https://docs.ropensci.org/traits/, https://github.com/ropensci/traits
2320
BugReports: https://github.com/ropensci/traits/issues
24-
LazyData: true
25-
Encoding: UTF-8
26-
VignetteBuilder: knitr
27-
Roxygen: list(markdown = TRUE)
2821
Depends:
2922
R (>= 2.10)
3023
Imports:
31-
jsonlite (>= 0.9.19),
32-
httr (>= 1.1.0),
3324
crul (>= 0.6.0),
34-
tibble (>= 1.3.4),
3525
data.table (>= 1.9.6),
26+
hoardr,
27+
httr (>= 1.1.0),
28+
jsonlite (>= 0.9.19),
3629
readr (>= 1.1.1),
30+
rvest (>= 0.3.1),
3731
taxize (>= 0.7.4),
38-
xml2 (>= 0.1.2),
39-
rvest (>= 0.3.1),
40-
hoardr
32+
tibble (>= 1.3.4),
33+
xml2 (>= 0.1.2)
4134
Suggests:
35+
dplyr,
4236
knitr,
37+
plyr,
4338
rmarkdown,
44-
testthat,
45-
dplyr,
46-
plyr
47-
RoxygenNote: 7.1.1
39+
testthat
40+
VignetteBuilder:
41+
knitr
42+
Date/Publication: 2025-04-10
43+
Encoding: UTF-8
44+
LazyData: true
45+
Roxygen: list(markdown = TRUE)
46+
RoxygenNote: 7.3.2
4847
X-schema.org-applicationCategory: Biodiversity
49-
X-schema.org-keywords: traits, API, web-services, species, taxonomy
50-
X-schema.org-isPartOf: https://ropensci.org
48+
X-schema.org-isPartOf: https://ropensci.org,
49+
https://doi.org/10.5281/zenodo.11224037
50+
X-schema.org-keywords: traits, API, web-services, species, taxonomy,
51+
biodiversity, ecology, environmental-data, species-traits

NEWS.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
Unreleased
22
==========
33

4+
traits 0.5.2 (2025-04-10)
5+
=========================
6+
47
### Minor Improvements
58

6-
* Set up automatic archiving of releases on Zenodo
7-
* Add CITATION.cff file (#133)
8-
* add doi to README, CITATION.cff (#134)
9+
* Set up automatic archiving of releases on Zenodo.
10+
* Added `CITATION.cff` file (#133).
11+
* Added DOI to `README` and `CITATION.cff` (#134).
12+
* Added `inst/CITATION`.
13+
14+
### Bug Fixes
915

16+
* Fixed syntax error in `test-ncbi.R` causing test failures.
17+
* Added missing `batch_size` argument to `ncbi_byname` documentation (#132).
18+
* Changed 'country' to 'geo_loc_name' in `ncbi_byid()` (#136).
19+
1020
traits 0.5.1
1121
============
1222

R/ncbi_byname.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#' @param gene (character) Gene or genes (in a vector) to search for.
66
#' See examples.
77
#' @param ... Curl options passed on to [crul::verb-GET]
8+
#' @param batch_size An integer specifying the number of names to query per batch.
89
#' @details Removes predicted sequences so you don't have to remove them.
910
#' Predicted sequences are those with accession numbers that have "XM_" or
1011
#' "XR_" prefixes. This function retrieves one sequences for each species,

R/traits-package.r

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
#' @importFrom tibble as_tibble
3030
#' @name traits-package
3131
#' @aliases traits
32-
#' @docType package
32+
#' @keywords internal
33+
"_PACKAGE"
3334
#' @author Scott Chamberlain
3435
#' @author Ignasi Bartomeus
3536
#' @author Zachary Foster

README.Rmd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: "traits: Species Trait Data from Around the Web"
3+
output: github_document
4+
---
5+
16
traits
27
=======
38

@@ -11,7 +16,7 @@ knitr::opts_chunk$set(
1116
```
1217

1318
<!--[![cran checks](https://cranchecks.info/badges/worst/traits)](https://cranchecks.info/pkgs/traits)-->
14-
[![Build Status](https://travis-ci.org/ropensci/traits.svg?branch=master)](https://travis-ci.org/ropensci/traits)
19+
[![R-CMD-check](https://github.com/ropensci/traits/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ropensci/traits/actions/workflows/R-CMD-check.yaml)
1520
[![codecov](https://codecov.io/gh/ropensci/traits/branch/master/graph/badge.svg)](https://codecov.io/gh/ropensci/traits)
1621
[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/traits)](https://github.com/r-hub/cranlogs.app)
1722
[![cran version](https://www.r-pkg.org/badges/version/traits)](https://CRAN.R-project.org/package=traits)

0 commit comments

Comments
 (0)