Skip to content

Commit a9b326b

Browse files
committed
Bump version to 0.5.2, update CITATION and DESCRIPTION files, enhance documentation, and fix bugs in tests.
1 parent 25eeb1b commit a9b326b

File tree

13 files changed

+117
-53
lines changed

13 files changed

+117
-53
lines changed

CITATION.cff

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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
11+
version: 0.5.2
1212
abstract: Species trait data from many different sources, including sequence data
1313
from 'NCBI' (<https://www.ncbi.nlm.nih.gov/>), plant trait data from 'BETYdb', data
1414
from 'EOL' 'Traitbank', 'Birdlife' International, and more.
@@ -49,8 +49,8 @@ keywords:
4949
- rstats
5050
preferred-citation:
5151
type: software
52-
title: 'ropensci/traits: traits 0.5.1'
53-
version: 0.5.1
52+
title: 'ropensci/traits: traits 0.5.2'
53+
version: 0.5.2
5454
authors:
5555
- family-names: Chamberlain
5656
given-names: Scott
@@ -72,4 +72,4 @@ preferred-citation:
7272
given-names: Rupert A.
7373
doi: 10.5281/zenodo.11224037
7474
url: https://doi.org/10.5281/zenodo.11224037
75-
date-released: 2024-05-17
75+
date-released: 2025-04-10

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.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
---
2+
title: "traits"
3+
---
4+
15
traits
26
=======
37

48
<!--
59
[![cran checks](https://cranchecks.info/badges/worst/traits)](https://cranchecks.info/pkgs/traits)
610
[![Build Status](https://travis-ci.org/ropensci/traits.svg?branch=master)](https://travis-ci.org/ropensci/traits)-->
7-
[![codecov](https://codecov.io/gh/ropensci/traits/branch/master/graph/badge.svg)](https://codecov.io/gh/ropensci/traits)
11+
[![codecov](https://codecov.io/gh/ropensci/traits/branch/master/graph/badge.svg)](https://app.codecov.io/gh/ropensci/traits)
812
[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/traits)](https://github.com/r-hub/cranlogs.app)
913
[![cran version](https://www.r-pkg.org/badges/version/traits)](https://CRAN.R-project.org/package=traits)
1014
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11224037.svg)](https://doi.org/10.5281/zenodo.11224037)

cran-comments.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
## Test environments
22

3-
* local OS X install, R 4.0.2 patched
4-
* ubuntu 14.04 (on travis-ci), R 4.0.2
3+
* local macOS install, R 4.3.1
4+
* Ubuntu 22.04 (via GitHub Actions), R 4.3.1
5+
* Windows (via GitHub Actions), R 4.3.1
56
* win-builder (devel and release)
67

78
## R CMD check results
89

910
0 errors | 0 warnings | 0 notes
1011

11-
------
12+
## Changes in this version
13+
14+
* Added automatic archiving of releases on Zenodo.
15+
* Added `CITATION.cff` file and DOI to metadata.
16+
* Fixed syntax error in `test-ncbi.R` causing test failures.
17+
* Added missing `batch_size` argument to `ncbi_byname` documentation.
18+
* Update tests.
19+
* Add `inst/CITATION` file.
1220

13-
This version makes some functions defunct, and fixes some bugs.
21+
------
1422

1523
Thanks!
16-
Scott Chamberlain
24+
David LeBauer

inst/CITATION

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
citHeader("To cite the 'traits' package in publications, please use:")
2+
3+
citation <- bibentry(
4+
bibtype = "Manual",
5+
title = "traits: Species Trait Data from Around the Web",
6+
author = c(
7+
person("David", "LeBauer", email = "dlebauer@gmail.com", comment = c(ORCID = "0000-0001-7228-053X")),
8+
person("Scott", "Chamberlain", email = "myrmecocystus@gmail.com", comment = c(ORCID = "0000-0003-1444-9135")),
9+
person("Zachary", "Foster"),
10+
person("Ignasi", "Bartomeus"),
11+
person("Chris", "Black"),
12+
person("David", "Harris")
13+
),
14+
year = "2025",
15+
note = "R package version 0.5.2, https://github.com/ropensci/traits, https://doi.org/10.5281/zenodo.11224037",
16+
url = "https://docs.ropensci.org/traits/"
17+
)
18+
19+
citFooter("Please use the DOI to cite this package: https://doi.org/10.5281/zenodo.11224037")
20+
21+
citation

man/ncbi_byname.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/traits-package.Rd

Lines changed: 23 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)