Skip to content

Commit 40f1985

Browse files
authored
rgbif v3.8.0 (#738)
1 parent 41c94c8 commit 40f1985

File tree

183 files changed

+154505
-276919
lines changed

Some content is hidden

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

183 files changed

+154505
-276919
lines changed

.github/workflows/rhub.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ on:
2424
type: string
2525

2626
jobs:
27-
2827
setup:
2928
runs-on: ubuntu-latest
3029
outputs:

CRAN-SUBMISSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Version: 3.7.9
2-
Date: 2024-01-10 13:29:08 UTC
3-
SHA: e472449532c920d1eb370230cba7ce11e024ff58
1+
Version: 3.8.0
2+
Date: 2024-05-23 07:22:30 UTC
3+
SHA: 891268cb6c9c91878188b673db49f737d83e7920

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Description: A programmatic interface to the Web Service methods
88
retrieving information on data providers, getting species occurrence
99
records, getting counts of occurrence records, and using the GBIF
1010
tile map service to make rasters summarizing huge amounts of data.
11-
Version: 3.7.9.3
11+
Version: 3.8.0
1212
License: MIT + file LICENSE
1313
Authors@R: c(
1414
person("Scott", "Chamberlain", role = "aut", comment = c(ORCID="0000-0003-1444-9135")),

NAMESPACE

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ S3method(print,occ_download_meta)
2020
S3method(print,occ_download_prep)
2121
S3method(print,occ_predicate)
2222
S3method(print,occ_predicate_list)
23-
S3method(print,verbatim_extensions)
2423
export("%>%")
2524
export(DownReq)
2625
export(GbifQueue)
@@ -130,7 +129,6 @@ export(pred_within)
130129
export(rgb_country_codes)
131130
export(suggestfields)
132131
export(taxrank)
133-
export(verbatim_extensions)
134132
export(wkt_parse)
135133
importFrom(R6,R6Class)
136134
importFrom(data.table,fread)

NEWS.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
rgbif 3.8.0
2+
===========
3+
4+
### NEW FEATURES
5+
6+
* Added many missing `occ_search()` terms. (#698)
7+
* New function `occ_download_describe()` for getting information about download formats. (#721)
8+
9+
### MINOR IMPROVEMENTS
10+
11+
* Added `constituentKey` to `name_lookup()`. (#729)
12+
* Added support for `gbifId` downloads (#711)
13+
14+
## BUG FIXES
15+
* `check_inputs()`bug fixed. (#706)
16+
17+
### DOCUMENTATION
18+
19+
* New article [Effectively using occ_search](https://docs.ropensci.org/rgbif/articles/effectively_using_occ_search.html)
20+
* Guidance for reversing WKT winding order. (#724)
21+
22+
### DEPRECATED
23+
24+
* `gbif_citation()` datasetKey methods no longer supported (#716)
25+
* "axe" feature in `occ_data()` is no longer supported. (#718)
26+
* `occ_data()` is soft deprecated and supported for legacy reasons only, and will no longer add new features.
27+
128
rgbif 3.7.9
229
===========
330

R/download_predicate_dsl.R

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,6 @@ pred_default <- function() {
278278
pred_not(pred_in("BASIS_OF_RECORD",c("FOSSIL_SPECIMEN","LIVING_SPECIMEN")))
279279
)
280280
}
281-
#' @rdname download_predicate_dsl
282-
#' @export
283-
verbatim_extensions <- function(...) {
284-
x <- unlist(list(...))
285-
assert(x,"character")
286-
structure(x, class = "verbatim_extensions")
287-
}
288281

289282
#' @export
290283
print.occ_predicate <- function(x, ...) {
@@ -305,14 +298,6 @@ print.occ_predicate_list <- function(x, ...) {
305298
}
306299
}
307300

308-
#' @export
309-
print.verbatim_extensions <- function(...) {
310-
x <- unlist(list(...))
311-
cat("<<gbif download - verbatim_extensions>>", sep = "\n")
312-
for(i in seq_along(x)) {
313-
cat(" ", x[i], "\n", sep = "")
314-
}
315-
}
316301

317302
# helpers
318303
pred_factory <- function(type) {
@@ -599,7 +584,7 @@ parse_predicates <- function(user, email, type, format, ...) {
599584
stop("You are requesting a full download. Please use a predicate to filter the data. For example, pred_default().")
600585
}
601586
clzzs <- vapply(tmp,
602-
function(z) inherits(z, c("verbatim_extensions","occ_predicate", "occ_predicate_list")),
587+
function(z) inherits(z, c("occ_predicate", "occ_predicate_list")),
603588
logical(1)
604589
)
605590
if (!all(clzzs))
@@ -611,20 +596,6 @@ clzzs <- vapply(tmp,
611596
format = unbox(format),
612597
predicate = list()
613598
)
614-
# handle verbatim_extensions
615-
if(any(sapply(tmp,class) %in% "verbatim_extensions")) {
616-
if(!format == "DWCA") stop("verbatim_extensions only work with format='DWCA'")
617-
ve_idx <- which(sapply(tmp,class) == "verbatim_extensions")
618-
if(!length(ve_idx) == 1) stop("Please supply only one verbatim_extensions() expression.")
619-
payload <- list(
620-
creator = unbox(user),
621-
notification_address = email,
622-
format = unbox(format),
623-
predicate = list(),
624-
verbatimExtensions = unclass(tmp[[ve_idx]])
625-
)
626-
tmp[ve_idx] <- NULL
627-
}
628599
if (any(vapply(tmp, function(w) "predicates" %in% names(w), logical(1)))) {
629600
payload$predicate <- list(unclass(tmp[[1]]))
630601
} else {

codemeta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci/rgbif",
99
"issueTracker": "https://github.com/ropensci/rgbif/issues",
1010
"license": "https://spdx.org/licenses/MIT",
11-
"version": "3.7.9",
11+
"version": "3.8.0",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",
@@ -358,7 +358,7 @@
358358
"applicationCategory": "Biodiversity",
359359
"isPartOf": "https://ropensci.org",
360360
"keywords": ["GBIF", "specimens", "API", "web-services", "occurrences", "species", "taxonomy", "gbif", "api", "data", "biodiversity", "rstats", "r", "spocc", "r-package", "lifewatch", "oscibio"],
361-
"fileSize": "11587.689KB",
361+
"fileSize": "6425.728KB",
362362
"citation": [
363363
{
364364
"@type": "SoftwareSourceCode",
@@ -402,7 +402,7 @@
402402
],
403403
"name": "rgbif: Interface to the Global Biodiversity Information Facility API",
404404
"url": "https://CRAN.R-project.org/package=rgbif",
405-
"description": "R package version 3.7.9"
405+
"description": "R package version 3.8.0"
406406
},
407407
{
408408
"@type": "ScholarlyArticle",

cran-comments.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
## Test environments
22

33
* local windows, R 4.2.3
4-
* windows latest R 4.3.2 (GitHub Actions)
5-
* ubuntu 20.04, R 4.3.2 (GitHub Actions)
6-
* macOS latest, R 4.3.2 (GitHub Actions)
4+
* windows latest R "release" version (GitHub Actions)
5+
* ubuntu 20.04, R "release" version (GitHub Actions)
6+
* macOS latest, R "release" version (GitHub Actions)
77

88
## R CMD check results
99

1010
0 errors | 0 warnings | 0 notes
1111

1212
## Reverse dependencies
1313

14-
* I have run R CMD check on the 16 reverse dependencies. Reverse dependency checks at <https://github.com/ropensci/rgbif/actions?query=workflow%3Arevdep>. No problems were found related to this package.
14+
* I have run R CMD check on the 13 reverse dependencies. Reverse dependency checks at <https://github.com/ropensci/rgbif/actions?query=workflow%3Arevdep>. No problems were found related to this package.
1515

1616
--------
1717

man/download_predicate_dsl.Rd

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

0 commit comments

Comments
 (0)