Skip to content

Commit bde12ff

Browse files
author
John Waller
committed
fixing curlopts error
1 parent 988215f commit bde12ff

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

R/lit_search.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ lit_export <- function(
307307
flatten=NULL,
308308
abstract=FALSE,
309309
limit=NULL,
310-
curlopts = NULL
310+
curlopts = list()
311311
) {
312312

313313
if(!is_uuid(datasetKey) & !is.null(datasetKey)) stop("'datasetKey' should be a GBIF dataset uuid.")
@@ -327,7 +327,7 @@ lit_export <- function(
327327
assert(journalPublisher,"character")
328328
if(!is.null(flatten)) message("flatten argument is ignored for lit_export, results are returned flat.")
329329
if(!is.null(limit)) message("limit argument is ignored for lit_export, all results are returned.")
330-
if(!is.null(curlopts)) message("curlopts argument are ignored for lit_export")
330+
if(!length(curlopts)==0) message("curlopts argument are ignored for lit_export")
331331
# https://api.gbif.org/v1/literature/export?format=TSV&gbifDownloadKey=0138953-210914110416597
332332

333333
args <- rgbif_compact(

man/lit_search.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)