Package check result: NOTE Check: CRAN incoming feasibility, Result: NOTE Maintainer: ‘Scott Chamberlain ’ Found the following (possibly) invalid URLs: URL: https://orcid.org/0000-0003-1444-9135 From: man/crul-package.Rd Status: 503 Message: Service Unavailable Found the following (possibly) invalid ORCID iD: iD: 0000-0003-1444-9135 (from: DESCRIPTION) Changes to worse in reverse depends: Package: citecorp Check: tests New result: ERROR Running ‘test-all.R’ [4s/4s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library("testthat") > test_check("citecorp") Loading required package: citecorp [ FAIL 12 | WARN 0 | SKIP 0 | PASS 16 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-oc_coci.R:12:5'): oc_coci_refs works ─────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oc_coci.R:11:3 2. │ └─cassette$call_block(...) 3. └─citecorp::oc_coci_refs(doi1) at test-oc_coci.R:12:5 4. ├─citecorp:::lst2df_tbl(...) 5. │ ├─base::structure(lst2df(x), class = c("tbl_df", "tbl", "data.frame")) 6. │ └─citecorp:::lst2df(x) 7. │ ├─data.table::setDF(data.table::rbindlist(x, fill = TRUE, use.names = TRUE)) 8. │ └─data.table::rbindlist(x, fill = TRUE, use.names = TRUE) 9. └─base::lapply(...) 10. └─citecorp (local) FUN(X[[i]], ...) 11. └─citecorp:::oc_coci_stub(...) 12. └─citecorp:::oc_coci_parser(x) 13. └─jsonlite::fromJSON(x, FALSE) 14. └─jsonlite:::parse_and_simplify(...) 15. └─jsonlite:::parseJSON(txt, bigint_as_char) 16. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-oc_coci.R:33:5'): oc_coci_refs - many dois ───────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oc_coci.R:32:3 2. │ └─cassette$call_block(...) 3. └─citecorp::oc_coci_refs(c(doi1, doi3)) at test-oc_coci.R:33:5 4. ├─citecorp:::lst2df_tbl(...) 5. │ ├─base::structure(lst2df(x), class = c("tbl_df", "tbl", "data.frame")) 6. │ └─citecorp:::lst2df(x) 7. │ ├─data.table::setDF(data.table::rbindlist(x, fill = TRUE, use.names = TRUE)) 8. │ └─data.table::rbindlist(x, fill = TRUE, use.names = TRUE) 9. └─base::lapply(...) 10. └─citecorp (local) FUN(X[[i]], ...) 11. └─citecorp:::oc_coci_stub(...) 12. └─citecorp:::oc_coci_parser(x) 13. └─jsonlite::fromJSON(x, FALSE) 14. └─jsonlite:::parse_and_simplify(...) 15. └─jsonlite:::parseJSON(txt, bigint_as_char) 16. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-oc_coci.R:47:5'): oc_coci_cites works ────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oc_coci.R:46:3 2. │ └─cassette$call_block(...) 3. └─citecorp::oc_coci_cites(doi1) at test-oc_coci.R:47:5 4. ├─citecorp:::lst2df_tbl(...) 5. │ ├─base::structure(lst2df(x), class = c("tbl_df", "tbl", "data.frame")) 6. │ └─citecorp:::lst2df(x) 7. │ ├─data.table::setDF(data.table::rbindlist(x, fill = TRUE, use.names = TRUE)) 8. │ └─data.table::rbindlist(x, fill = TRUE, use.names = TRUE) 9. └─base::lapply(...) 10. └─citecorp (local) FUN(X[[i]], ...) 11. └─citecorp:::oc_coci_stub(...) 12. └─citecorp:::oc_coci_parser(x) 13. └─jsonlite::fromJSON(x, FALSE) 14. └─jsonlite:::parse_and_simplify(...) 15. └─jsonlite:::parseJSON(txt, bigint_as_char) 16. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-oc_coci.R:67:5'): oc_coci_cites - many dois ──────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oc_coci.R:66:3 2. │ └─cassette$call_block(...) 3. └─citecorp::oc_coci_cites(c(doi1, doi3)) at test-oc_coci.R:67:5 4. ├─citecorp:::lst2df_tbl(...) 5. │ ├─base::structure(lst2df(x), class = c("tbl_df", "tbl", "data.frame")) 6. │ └─citecorp:::lst2df(x) 7. │ ├─data.table::setDF(data.table::rbindlist(x, fill = TRUE, use.names = TRUE)) 8. │ └─data.table::rbindlist(x, fill = TRUE, use.names = TRUE) 9. └─base::lapply(...) 10. └─citecorp (local) FUN(X[[i]], ...) 11. └─citecorp:::oc_coci_stub(...) 12. └─citecorp:::oc_coci_parser(x) 13. └─jsonlite::fromJSON(x, FALSE) 14. └─jsonlite:::parse_and_simplify(...) 15. └─jsonlite:::parseJSON(txt, bigint_as_char) 16. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-oc_coci.R:81:5'): oc_coci_meta works ─────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oc_coci.R:80:3 2. │ └─cassette$call_block(...) 3. └─citecorp::oc_coci_meta(doi1) at test-oc_coci.R:81:5 4. └─citecorp:::oc_coci_stub(...) 5. └─citecorp:::oc_coci_parser(x) 6. └─jsonlite::fromJSON(x, FALSE) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-oc_coci.R:100:5'): oc_coci_meta - many dois ──────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oc_coci.R:99:3 2. │ └─cassette$call_block(...) 3. └─citecorp::oc_coci_meta(c(doi1, doi3)) at test-oc_coci.R:100:5 4. └─citecorp:::oc_coci_stub(...) 5. └─citecorp:::oc_coci_parser(x) 6. └─jsonlite::fromJSON(x, FALSE) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-oc_coci.R:114:5'): oc_coci_citation works ────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oc_coci.R:113:3 2. │ └─cassette$call_block(...) 3. └─citecorp::oc_coci_citation(oci1) at test-oc_coci.R:114:5 4. ├─citecorp:::lst2df_tbl(lapply(oci, oc_coci_citation_one, ...)) 5. │ ├─base::structure(lst2df(x), class = c("tbl_df", "tbl", "data.frame")) 6. │ └─citecorp:::lst2df(x) 7. │ ├─data.table::setDF(data.table::rbindlist(x, fill = TRUE, use.names = TRUE)) 8. │ └─data.table::rbindlist(x, fill = TRUE, use.names = TRUE) 9. └─base::lapply(oci, oc_coci_citation_one, ...) 10. └─citecorp (local) FUN(X[[i]], ...) 11. └─citecorp:::oc_coci_parser(z) 12. └─jsonlite::fromJSON(x, FALSE) 13. └─jsonlite:::parse_and_simplify(...) 14. └─jsonlite:::parseJSON(txt, bigint_as_char) 15. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-oc_coci.R:138:5'): oc_coci_citation - many dois ──────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oc_coci.R:137:3 2. │ └─cassette$call_block(...) 3. └─citecorp::oc_coci_citation(c(oci1, oci2)) at test-oc_coci.R:138:5 4. ├─citecorp:::lst2df_tbl(lapply(oci, oc_coci_citation_one, ...)) 5. │ ├─base::structure(lst2df(x), class = c("tbl_df", "tbl", "data.frame")) 6. │ └─citecorp:::lst2df(x) 7. │ ├─data.table::setDF(data.table::rbindlist(x, fill = TRUE, use.names = TRUE)) 8. │ └─data.table::rbindlist(x, fill = TRUE, use.names = TRUE) 9. └─base::lapply(oci, oc_coci_citation_one, ...) 10. └─citecorp (local) FUN(X[[i]], ...) 11. └─citecorp:::oc_coci_parser(z) 12. └─jsonlite::fromJSON(x, FALSE) 13. └─jsonlite:::parse_and_simplify(...) 14. └─jsonlite:::parseJSON(txt, bigint_as_char) 15. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-oc_lookup.R:6:5'): oc_doi2ids works ──────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oc_lookup.R:5:3 2. │ └─cassette$call_block(...) 3. └─citecorp::oc_doi2ids("10.1097/igc.0000000000000609") at test-oc_lookup.R:6:5 4. └─citecorp:::cp_query(qry, ...) 5. └─citecorp:::oc_sparql_GET(...) 6. └─jsonlite::fromJSON(res$parse("UTF-8"), flatten = flatten) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-oc_lookup.R:16:5'): oc_doi2ids works ─────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oc_lookup.R:15:3 2. │ └─cassette$call_block(...) 3. └─citecorp::oc_doi2ids("10.1093/biomet/80.3.527") at test-oc_lookup.R:16:5 4. └─citecorp:::cp_query(qry, ...) 5. └─citecorp:::oc_sparql_GET(...) 6. └─jsonlite::fromJSON(res$parse("UTF-8"), flatten = flatten) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-oc_lookup.R:39:5'): oc_pmid2ids works ────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oc_lookup.R:38:3 2. │ └─cassette$call_block(...) 3. └─citecorp::oc_pmid2ids("26645990") at test-oc_lookup.R:39:5 4. └─citecorp:::cp_query(qry, ...) 5. └─citecorp:::oc_sparql_GET(...) 6. └─jsonlite::fromJSON(res$parse("UTF-8"), flatten = flatten) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-oc_lookup.R:57:5'): oc_pmcid2ids works ───────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oc_lookup.R:56:3 2. │ └─cassette$call_block(...) 3. └─citecorp::oc_pmcid2ids("PMC4679344") at test-oc_lookup.R:57:5 4. └─citecorp:::cp_query(qry, ...) 5. └─citecorp:::oc_sparql_GET(...) 6. └─jsonlite::fromJSON(res$parse("UTF-8"), flatten = flatten) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) [ FAIL 12 | WARN 0 | SKIP 0 | PASS 16 ] Error: Test failures Execution halted Package: gfonts Check: tests New result: ERROR Running ‘testthat.R’ [2s/2s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(gfonts) > > test_check("gfonts") [ FAIL 3 | WARN 0 | SKIP 2 | PASS 50 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • On CRAN (2): 'test-api.R:34:3', 'test-setup_font.R:3:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-api.R:3:5'): get_all_fonts works ─────────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-api.R:2:3 2. │ └─cassette$call_block(...) 3. └─gfonts::get_all_fonts() at test-api.R:3:5 4. └─jsonlite::fromJSON(res$parse("UTF-8")) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-api.R:14:5'): get_font_info works ────────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-api.R:13:3 2. │ └─cassette$call_block(...) 3. └─gfonts::get_font_info("roboto") at test-api.R:14:5 4. └─jsonlite::fromJSON(res$parse("UTF-8")) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-css.R:4:5'): generate_css works ──────────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-css.R:2:3 2. │ └─cassette$call_block(...) 3. └─gfonts::generate_css(id = "roboto", variants = "regular", output = tmp) at test-css.R:4:5 4. └─gfonts::get_font_info(id = id, subsets = subsets, ...) 5. └─jsonlite::fromJSON(res$parse("UTF-8")) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) [ FAIL 3 | WARN 0 | SKIP 2 | PASS 50 ] Error: Test failures Execution halted Package: magmaR Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘Download.Rmd’ using rmarkdown Quitting from Download.Rmd:235-256 [unnamed-chunk-10] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! parse error: premature EOF (right here) ------^ --- Backtrace: ▆ 1. └─magmaR::retrieveProjects(target = prod) 2. └─jsonlite::fromJSON(return) 3. └─jsonlite:::parse_and_simplify(...) 4. └─jsonlite:::parseJSON(txt, bigint_as_char) 5. └─jsonlite:::parse_string(txt, bigint_as_char) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Download.Rmd' failed with diagnostics: parse error: premature EOF (right here) ------^ --- failed re-building ‘Download.Rmd’ --- re-building ‘Upload.Rmd’ using rmarkdown Quitting from Upload.Rmd:136-151 [unnamed-chunk-2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! parse error: premature EOF (right here) ------^ --- Backtrace: ▆ 1. └─magmaR::updateValues(...) 2. └─magmaR::retrieveTemplate(target, projectName) 3. └─magmaR:::.retrieve(...) 4. └─jsonlite::fromJSON(curl_out) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Upload.Rmd' failed with diagnostics: parse error: premature EOF (right here) ------^ --- failed re-building ‘Upload.Rmd’ SUMMARY: processing the following files failed: ‘Download.Rmd’ ‘Upload.Rmd’ Error: Vignette re-building failed. Execution halted Package: magmaR Check: tests New result: ERROR Running ‘testthat.R’ [4s/4s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library("testthat") > if (!requireNamespace('vcr')) { + "Skipping tests as the vcr webmockr package is integral to testing yet unavailable." + } else { + test_check("magmaR") + } Loading required namespace: vcr Loading required package: magmaR [ FAIL 15 | WARN 0 | SKIP 0 | PASS 17 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-matrix.R:10:5'): (code run outside of `test_that()`) ─────────── Error in `read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, comment.char = comment.char, ...)`: no lines available in input Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-matrix.R:8:1 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieveIds(targ, "example", "rna_seq") at test-matrix.R:10:5 4. └─magmaR:::.retrieve(...) 5. └─magmaR:::.parse_tsv(curl_out, names.only) 6. └─utils::read.csv(text = string, sep = "\t") 7. └─utils::read.table(...) ── Error ('test-meta.R:10:9'): retrieveMetadata, same branch ─────────────────── Error in `read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, comment.char = comment.char, ...)`: no lines available in input Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-meta.R:9:5 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieveAttributes(targ, "example", "biospecimen") at test-meta.R:10:9 4. └─magmaR::retrieveIds(target, projectName, modelName, ...) 5. └─magmaR:::.retrieve(...) 6. └─magmaR:::.parse_tsv(curl_out, names.only) 7. └─utils::read.csv(text = string, sep = "\t") 8. └─utils::read.table(...) ── Error ('test-query.R:11:9'): query_list ───────────────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-query.R:9:5 2. │ └─cassette$call_block(...) 3. └─magmaR::query(...) at test-query.R:11:9 4. └─magmaR:::.query(...) 5. └─jsonlite::fromJSON(curl_out) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-query.R:29:9'): query_df ─────────────────────────────────────── Error in `read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, comment.char = comment.char, ...)`: no lines available in input Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-query.R:27:5 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieveIds(targ, "example", "subject") at test-query.R:29:9 4. └─magmaR:::.retrieve(...) 5. └─magmaR:::.parse_tsv(curl_out, names.only) 6. └─utils::read.csv(text = string, sep = "\t") 7. └─utils::read.table(...) ── Error ('test-retrieve.R:10:9'): retrieve & retrieveJSON work with minimal input ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-retrieve.R:9:5 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieveJSON(targ, "example", "subject") at test-retrieve.R:10:9 4. └─magmaR:::.retrieve(...) 5. └─jsonlite::fromJSON(curl_out) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-retrieve.R:35:9'): retrieve works with targetted input, 1att ─── Error in `read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, comment.char = comment.char, ...)`: no lines available in input Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-retrieve.R:34:5 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieve(...) at test-retrieve.R:35:9 4. └─magmaR:::.retrieve(...) 5. └─magmaR:::.parse_tsv(curl_out, names.only) 6. └─utils::read.csv(text = string, sep = "\t") 7. └─utils::read.table(...) ── Error ('test-retrieve.R:50:9'): retrieve works with targetted input, 1rec ─── Error in `read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, comment.char = comment.char, ...)`: no lines available in input Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-retrieve.R:49:5 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieve(...) at test-retrieve.R:50:9 4. └─magmaR:::.retrieve(...) 5. └─magmaR:::.parse_tsv(curl_out, names.only) 6. └─utils::read.csv(text = string, sep = "\t") 7. └─utils::read.table(...) ── Error ('test-retrieve.R:65:9'): retrieveJSON can hide templates ───────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-retrieve.R:64:5 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieveJSON(...) at test-retrieve.R:65:9 4. └─magmaR:::.retrieve(...) 5. └─jsonlite::fromJSON(curl_out) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-special.R:10:7'): retrieveTemplate ───────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-special.R:9:3 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieveTemplate(targ, "example") at test-special.R:10:7 4. └─magmaR:::.retrieve(...) 5. └─jsonlite::fromJSON(curl_out) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-special.R:17:7'): retrieveModels ─────────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-special.R:16:3 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieveModels(targ, "example") at test-special.R:17:7 4. └─magmaR::retrieveTemplate(target, projectName) 5. └─magmaR:::.retrieve(...) 6. └─jsonlite::fromJSON(curl_out) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-special.R:24:7'): retrieveIds ────────────────────────────────── Error in `read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, comment.char = comment.char, ...)`: no lines available in input Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-special.R:23:3 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieveIds(targ, "example", "subject") at test-special.R:24:7 4. └─magmaR:::.retrieve(...) 5. └─magmaR:::.parse_tsv(curl_out, names.only) 6. └─utils::read.csv(text = string, sep = "\t") 7. └─utils::read.table(...) ── Error ('test-special.R:31:7'): retrieveAttributes ─────────────────────────── Error in `read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, comment.char = comment.char, ...)`: no lines available in input Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-special.R:30:3 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieveAttributes(targ, "example", "subject") at test-special.R:31:7 4. └─magmaR::retrieveIds(target, projectName, modelName, ...) 5. └─magmaR:::.retrieve(...) 6. └─magmaR:::.parse_tsv(curl_out, names.only) 7. └─utils::read.csv(text = string, sep = "\t") 8. └─utils::read.table(...) ── Error ('test-special.R:38:9'): retrieveParentName ─────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-special.R:37:5 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieveParentName(targ, "example", "demographic") at test-special.R:38:9 4. └─magmaR::retrieveTemplate(target, projectName) 5. └─magmaR:::.retrieve(...) 6. └─jsonlite::fromJSON(curl_out) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Failure ('test-token-url.R:37:9'): Proper error given when a token is improper ── `retrieveProjects(bad_targ)` threw an error with unexpected message. Expected match: "unauthorized. Update your 'token'" Actual message: "parse error: premature EOF\n \n (right here) ------^\n" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-token-url.R:37:9 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─magmaR::retrieveProjects(bad_targ) 7. └─jsonlite::fromJSON(return) 8. └─jsonlite:::parse_and_simplify(...) 9. └─jsonlite:::parseJSON(txt, bigint_as_char) 10. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-update.R:12:5'): (code run outside of `test_that()`) ─────────── Error in `read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, comment.char = comment.char, ...)`: no lines available in input Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-update.R:11:1 2. │ └─cassette$call_block(...) 3. └─magmaR::retrieveMatrix(targ, "example", "rna_seq", "all", "gene_counts") at test-update.R:12:5 4. └─magmaR::retrieveIds(target, projectName, modelName) 5. └─magmaR:::.retrieve(...) 6. └─magmaR:::.parse_tsv(curl_out, names.only) 7. └─utils::read.csv(text = string, sep = "\t") 8. └─utils::read.table(...) [ FAIL 15 | WARN 0 | SKIP 0 | PASS 17 ] Error: Test failures Execution halted Package: pangaear Check: tests New result: ERROR Running ‘test-all.R’ [4s/4s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library("testthat") > test_check("pangaear") Loading required package: pangaear [ FAIL 9 | WARN 1 | SKIP 8 | PASS 0 ] ══ Skipped tests (8) ═══════════════════════════════════════════════════════════ • On CRAN (8): 'test-oai_functions.R:67:3', 'test-pg_data.R:7:3', 'test-pg_data.R:25:3', 'test-pg_data.R:32:3', 'test-pg_data.R:50:3', 'test-pg_data.R:78:3', 'test-pg_search.r:53:3', 'test-pg_search_es.R:29:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-oai_functions.R:5:5'): pg_identify() works ───────────────────── Error in `path_to_connection(x)`: '' does not exist in current working directory ('/home/hornik/tmp/CRAN_recheck/pangaear.Rcheck/tests/testthat'). Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oai_functions.R:4:3 2. │ └─cassette$call_block(...) 3. └─pangaear::pg_identify() at test-oai_functions.R:5:5 4. └─oai::id(url = baseoai(), ...) 5. ├─plyr::rbind.fill(lapply(url, id_, as = as, ...)) 6. └─base::lapply(url, id_, as = as, ...) 7. └─oai (local) FUN(X[[i]], ...) 8. ├─oai:::get_headers(xml_children(xml2::read_xml(tt))[[3]]) 9. │ ├─base::lapply(...) 10. │ └─xml2::xml_children(m) 11. │ └─xml2:::nodeset_apply(x, function(x) .Call(node_children, x, TRUE)) 12. ├─xml2::xml_children(xml2::read_xml(tt)) 13. │ └─xml2:::nodeset_apply(x, function(x) .Call(node_children, x, TRUE)) 14. ├─xml2::read_xml(tt) 15. └─xml2:::read_xml.character(tt) 16. └─xml2:::path_to_connection(x) 17. └─xml2:::check_path(path) 18. └─cli::cli_abort(msg, call = call) 19. └─rlang::abort(...) ── Error ('test-oai_functions.R:14:5'): pg_list_sets() works ─────────────────── Error in `while_oai(url, args, token, as, ...)`: cannot parse downloaded XML, dumped raw XML to file ./oaidump_2025-07-21_19-00-14.607102232c49157fb383xml Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oai_functions.R:13:3 2. │ └─cassette$call_block(...) 3. └─pangaear::pg_list_sets() at test-oai_functions.R:14:5 4. └─oai::list_sets(url = baseoai(), token = token, as = as, ...) 5. └─oai:::while_oai(url, args, token, as, ...) ── Error ('test-oai_functions.R:33:5'): pg_list_metadata_formats() works ─────── Error in `path_to_connection(x)`: '' does not exist in current working directory ('/home/hornik/tmp/CRAN_recheck/pangaear.Rcheck/tests/testthat'). Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oai_functions.R:32:3 2. │ └─cassette$call_block(...) 3. └─pangaear::pg_list_metadata_formats() at test-oai_functions.R:33:5 4. └─oai::list_metadataformats(url = baseoai(), ...) 5. └─oai:::one_mf(id, url, ...) 6. ├─xml2::read_xml(out) 7. └─xml2:::read_xml.character(out) 8. └─xml2:::path_to_connection(x) 9. └─xml2:::check_path(path) 10. └─cli::cli_abort(msg, call = call) 11. └─rlang::abort(...) ── Error ('test-oai_functions.R:55:5'): pg_get_record() works ────────────────── Error in `path_to_connection(x)`: '' does not exist in current working directory ('/home/hornik/tmp/CRAN_recheck/pangaear.Rcheck/tests/testthat'). Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oai_functions.R:54:3 2. │ └─cassette$call_block(...) 3. └─pangaear::pg_get_record(identifier = "oai:pangaea.de:doi:10.1594/PANGAEA.788382") at test-oai_functions.R:55:5 4. └─oai::get_records(...) 5. ├─stats::setNames(...) 6. └─base::lapply(...) 7. └─oai (local) FUN(X[[i]], ...) 8. ├─xml2::read_xml(tt) 9. └─xml2:::read_xml.character(tt) 10. └─xml2:::path_to_connection(x) 11. └─xml2:::check_path(path) 12. └─cli::cli_abort(msg, call = call) 13. └─rlang::abort(...) ── Error ('test-pg_identify.R:5:5'): pg_identify works ───────────────────────── Error in `path_to_connection(x)`: '' does not exist in current working directory ('/home/hornik/tmp/CRAN_recheck/pangaear.Rcheck/tests/testthat'). Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-pg_identify.R:4:3 2. │ └─cassette$call_block(...) 3. └─pangaear::pg_identify() at test-pg_identify.R:5:5 4. └─oai::id(url = baseoai(), ...) 5. ├─plyr::rbind.fill(lapply(url, id_, as = as, ...)) 6. └─base::lapply(url, id_, as = as, ...) 7. └─oai (local) FUN(X[[i]], ...) 8. ├─oai:::get_headers(xml_children(xml2::read_xml(tt))[[3]]) 9. │ ├─base::lapply(...) 10. │ └─xml2::xml_children(m) 11. │ └─xml2:::nodeset_apply(x, function(x) .Call(node_children, x, TRUE)) 12. ├─xml2::xml_children(xml2::read_xml(tt)) 13. │ └─xml2:::nodeset_apply(x, function(x) .Call(node_children, x, TRUE)) 14. ├─xml2::read_xml(tt) 15. └─xml2:::read_xml.character(tt) 16. └─xml2:::path_to_connection(x) 17. └─xml2:::check_path(path) 18. └─cli::cli_abort(msg, call = call) 19. └─rlang::abort(...) ── Error ('test-pg_search.r:5:5'): pg_search works and stuff, and stuff and things, also, it works ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-pg_search.r:4:3 2. │ └─cassette$call_block(...) 3. └─pangaear::pg_search(query = "water") at test-pg_search.r:5:5 4. └─jsonlite::fromJSON(res$parse("UTF-8"), FALSE) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-pg_search.r:31:5'): pg_search paging works ───────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-pg_search.r:30:3 2. │ └─cassette$call_block(...) 3. └─pangaear::pg_search(query = "florisphaera", count = 10) at test-pg_search.r:31:5 4. └─jsonlite::fromJSON(res$parse("UTF-8"), FALSE) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-pg_search_es.R:5:5'): pg_search_es ───────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-pg_search_es.R:4:3 2. │ └─cassette$call_block(...) 3. └─pangaear::pg_search_es() at test-pg_search_es.R:5:5 4. └─jsonlite::fromJSON(res$parse("UTF-8"), flatten = TRUE) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-pg_search_es.R:21:5'): pg_search_es parameters work ──────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-pg_search_es.R:20:3 2. │ └─cassette$call_block(...) 3. └─pangaear::pg_search_es(size = 1) at test-pg_search_es.R:21:5 4. └─jsonlite::fromJSON(res$parse("UTF-8"), flatten = TRUE) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) [ FAIL 9 | WARN 1 | SKIP 8 | PASS 0 ] Error: Test failures Execution halted Package: rATTAINS Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘Introduction.Rmd’ using rmarkdown Quitting from Introduction.Rmd:41-46 [state_summary] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! parse error: premature EOF (right here) ------^ --- Backtrace: ▆ 1. └─rATTAINS::state_summary(organization_id = "TDECWR", reporting_cycle = "2016") 2. └─jsonlite::fromJSON(...) 3. └─jsonlite:::parse_and_simplify(...) 4. └─jsonlite:::parseJSON(txt, bigint_as_char) 5. └─jsonlite:::parse_string(txt, bigint_as_char) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Introduction.Rmd' failed with diagnostics: parse error: premature EOF (right here) ------^ --- failed re-building ‘Introduction.Rmd’ SUMMARY: processing the following file failed: ‘Introduction.Rmd’ Error: Vignette re-building failed. Execution halted Package: rATTAINS Check: tests New result: ERROR Running ‘testthat.R’ [3s/4s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(rATTAINS) > > test_check("rATTAINS") [ FAIL 8 | WARN 0 | SKIP 8 | PASS 13 ] ══ Skipped tests (8) ═══════════════════════════════════════════════════════════ • On CRAN (8): 'test-actions.R:24:3', 'test-assessment_units.R:23:3', 'test-assessments.R:28:3', 'test-domain_values.R:19:3', 'test-huc12_summary.R:32:3', 'test-plans.R:35:3', 'test-state_summary.R:29:3', 'test-survey.R:22:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-actions.R:4:5'): actions webservice works ────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-actions.R:3:3 2. │ └─cassette$call_block(...) 3. └─rATTAINS::actions(action_id = "R8-ND-2018-03") at test-actions.R:4:5 4. └─rATTAINS:::actions_to_tibble(...) 5. └─jsonlite::fromJSON(...) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-assessment_units.R:4:5'): assessment_units works ─────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-assessment_units.R:3:3 2. │ └─cassette$call_block(...) 3. └─rATTAINS::assessment_units(assessment_unit_identifer = "AL03150201-0107-200") at test-assessment_units.R:4:5 4. └─jsonlite::fromJSON(...) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-assessments.R:4:5'): assessments works ───────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-assessments.R:3:3 2. │ └─cassette$call_block(...) 3. └─rATTAINS::assessments(organization_id = "SDDENR", probable_source = "GRAZING IN RIPARIAN OR SHORELINE ZONES") at test-assessments.R:4:5 4. └─rATTAINS:::assessments_to_tibble(...) 5. └─jsonlite::fromJSON(...) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-domain_values.R:4:5'): domain_values works ───────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-domain_values.R:3:3 2. │ └─cassette$call_block(...) 3. └─rATTAINS::domain_values(domain_name = "UseName", context = "TCEQMAIN") at test-domain_values.R:4:5 4. └─jsonlite::fromJSON(...) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-huc12_summary.R:4:5'): huc_12 works ──────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-huc12_summary.R:3:3 2. │ └─cassette$call_block(...) 3. └─rATTAINS::huc12_summary(huc = "020700100204") at test-huc12_summary.R:4:5 4. └─jsonlite::fromJSON(...) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-plans.R:4:5'): plans works ───────────────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-plans.R:3:3 2. │ └─cassette$call_block(...) 3. └─rATTAINS::plans(huc = "020700100103") at test-plans.R:4:5 4. └─rATTAINS:::plans_to_tibble(...) 5. └─jsonlite::fromJSON(...) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-state_summary.R:4:22'): state_summary returns expected types and classes ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-state_summary.R:3:3 2. │ └─cassette$call_block(...) 3. └─rATTAINS::state_summary(organization_id = "TDECWR", reporting_cycle = "2016") at test-state_summary.R:4:22 4. └─jsonlite::fromJSON(...) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-survey.R:4:22'): survey returns expected types and classes ───── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-survey.R:3:3 2. │ └─cassette$call_block(...) 3. └─rATTAINS::surveys(organization_id = "SDDENR") at test-survey.R:4:22 4. └─jsonlite::fromJSON(...) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) [ FAIL 8 | WARN 0 | SKIP 8 | PASS 13 ] Error: Test failures Execution halted Package: rcrossref Check: tests New result: ERROR Running ‘test-all.R’ [12s/110s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library("testthat") > test_check("rcrossref") Loading required package: rcrossref [ FAIL 60 | WARN 0 | SKIP 4 | PASS 38 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • On CRAN (4): 'test-cr_abstract.R:1:1', 'test-cr_works.R:225:3', 'test-cr_works_.R:97:3', 'test-id_converter.R:24:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-cr_agency.R:6:5'): cr_ageny returns correct class ────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_agency.R:4:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_is(...) at test-cr_agency.R:6:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─rcrossref::cr_agency(dois = "10.1038/jid.2009.428") 7. └─rcrossref (local) foo(dois, ...) 8. └─rcrossref:::cr_GET(...) 9. └─jsonlite::fromJSON(res, todf) 10. └─jsonlite:::parse_and_simplify(...) 11. └─jsonlite:::parseJSON(txt, bigint_as_char) 12. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_agency.R:14:5'): cr_ageny returns correct length ──────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_agency.R:12:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_equal(...) at test-cr_agency.R:14:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─rcrossref::cr_agency(dois = c("10.13039/100000001", "10.13039/100000015")) 7. └─plyr::llply(dois, foo, y = .progress, ...) 8. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 9. └─base::lapply(pieces, .fun, ...) 10. └─rcrossref (local) FUN(X[[i]], ...) 11. └─rcrossref:::cr_GET(...) 12. └─jsonlite::fromJSON(res, todf) 13. └─jsonlite:::parse_and_simplify(...) 14. └─jsonlite:::parseJSON(txt, bigint_as_char) 15. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_agency.R:27:5'): cr_agency - email works ──────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_agency.R:26:3 2. │ └─cassette$call_block(...) 3. ├─withr::with_envvar(...) at test-cr_agency.R:27:5 4. │ └─base::force(code) 5. ├─testthat::expect_is(...) 6. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 7. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 8. └─rcrossref::cr_agency(dois = "10.1038/jid.2009.428") 9. └─rcrossref (local) foo(dois, ...) 10. └─rcrossref:::cr_GET(...) 11. └─jsonlite::fromJSON(res, todf) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_agency.R:45:6'): cr_agency - email NULL works ─────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_agency.R:43:3 2. │ └─cassette$call_block(...) 3. ├─withr::with_envvar(...) at test-cr_agency.R:45:6 4. │ └─base::force(code) 5. ├─testthat::expect_is(...) 6. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 7. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 8. └─rcrossref::cr_agency(dois = "10.1038/jid.2009.428") 9. └─rcrossref (local) foo(dois, ...) 10. └─rcrossref:::cr_GET(...) 11. └─jsonlite::fromJSON(res, todf) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_citation_count.R:6:5'): cr_citation_count returns ─────────── Error in `path_to_connection(x)`: '' does not exist in current working directory ('/home/hornik/tmp/CRAN_recheck/rcrossref.Rcheck/tests/testthat'). Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_citation_count.R:4:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_citation_count(doi = "10.1371/journal.pone.0042793") at test-cr_citation_count.R:6:5 4. └─base::lapply(doi, cr_cc, ur = url, key = key, ...) 5. └─rcrossref (local) FUN(X[[i]], ...) 6. ├─xml2::read_xml(cite_count$parse("UTF-8")) 7. └─xml2:::read_xml.character(cite_count$parse("UTF-8")) 8. └─xml2:::path_to_connection(x) 9. └─xml2:::check_path(path) 10. └─cli::cli_abort(msg, call = call) 11. └─rlang::abort(...) ── Error ('test-cr_cn.R:5:5'): cr_cn citeproc-json ───────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_cn.R:4:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_cn(dois = "10.1126/science.169.3946.635", format = "citeproc-json") at test-cr_cn.R:5:5 4. └─rcrossref (local) cn(dois, ...) 5. ├─base::suppressWarnings(GET_agency_id(doi)) 6. │ └─base::withCallingHandlers(...) 7. └─rcrossref:::GET_agency_id(doi) 8. └─rcrossref::cr_agency(x) 9. └─rcrossref (local) foo(dois, ...) 10. └─rcrossref:::cr_GET(...) 11. └─jsonlite::fromJSON(res, todf) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_cn.R:14:5'): cr_cn bibtex ─────────────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_cn.R:13:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_cn("10.1126/science.169.3946.635", "bibentry") at test-cr_cn.R:14:5 4. └─rcrossref (local) cn(dois, ...) 5. ├─base::suppressWarnings(GET_agency_id(doi)) 6. │ └─base::withCallingHandlers(...) 7. └─rcrossref:::GET_agency_id(doi) 8. └─rcrossref::cr_agency(x) 9. └─rcrossref (local) foo(dois, ...) 10. └─rcrossref:::cr_GET(...) 11. └─jsonlite::fromJSON(res, todf) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_cn.R:22:5'): cr_cn xml types ──────────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_cn.R:21:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_cn("10.1126/science.169.3946.635", "rdf-xml") at test-cr_cn.R:22:5 4. └─rcrossref (local) cn(dois, ...) 5. ├─base::suppressWarnings(GET_agency_id(doi)) 6. │ └─base::withCallingHandlers(...) 7. └─rcrossref:::GET_agency_id(doi) 8. └─rcrossref::cr_agency(x) 9. └─rcrossref (local) foo(dois, ...) 10. └─rcrossref:::cr_GET(...) 11. └─jsonlite::fromJSON(res, todf) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_cn.R:53:5'): DOIs with no agency found still work, at least some do ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_cn.R:43:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_is(...) at test-cr_cn.R:53:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. ├─base::suppressWarnings(cr_cn("10.1890/0012-9615(1999)069[0569:EDILSA]2.0.CO;2")) 7. │ └─base::withCallingHandlers(...) 8. └─rcrossref::cr_cn("10.1890/0012-9615(1999)069[0569:EDILSA]2.0.CO;2") 9. └─rcrossref (local) cn(dois, ...) 10. ├─base::suppressWarnings(GET_agency_id(doi)) 11. │ └─base::withCallingHandlers(...) 12. └─rcrossref:::GET_agency_id(doi) 13. └─rcrossref::cr_agency(x) 14. └─rcrossref (local) foo(dois, ...) 15. └─rcrossref:::cr_GET(...) 16. └─jsonlite::fromJSON(res, todf) 17. └─jsonlite:::parse_and_simplify(...) 18. └─jsonlite:::parseJSON(txt, bigint_as_char) 19. └─jsonlite:::parse_string(txt, bigint_as_char) ── Failure ('test-cr_cn.R:63:5'): cr_cn checks if doi agency supports format ─── `cr_cn(dois = "10.1430/8105", format = "crossref-tdm")` threw an error with unexpected message. Expected match: "not supported by the DOI registration agency: 'medra'" Actual message: "parse error: premature EOF\n \n (right here) ------^\n" Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_cn.R:61:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-cr_cn.R:63:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─rcrossref::cr_cn(dois = "10.1430/8105", format = "crossref-tdm") 9. └─rcrossref (local) cn(dois, ...) 10. ├─base::suppressWarnings(GET_agency_id(doi)) 11. │ └─base::withCallingHandlers(...) 12. └─rcrossref:::GET_agency_id(doi) 13. └─rcrossref::cr_agency(x) 14. └─rcrossref (local) foo(dois, ...) 15. └─rcrossref:::cr_GET(...) 16. └─jsonlite::fromJSON(res, todf) 17. └─jsonlite:::parse_and_simplify(...) 18. └─jsonlite:::parseJSON(txt, bigint_as_char) 19. └─jsonlite:::parse_string(txt, bigint_as_char) ── Failure ('test-cr_cn.R:71:5'): cr_cn checks if doi agency supports format ─── `cr_cn("10.1126/science.169.3946.635", "onix-xml")` threw an error with unexpected message. Expected match: "not supported by the DOI registration agency: 'crossref'" Actual message: "parse error: premature EOF\n \n (right here) ------^\n" Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_cn.R:61:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-cr_cn.R:71:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─rcrossref::cr_cn("10.1126/science.169.3946.635", "onix-xml") 9. └─rcrossref (local) cn(dois, ...) 10. ├─base::suppressWarnings(GET_agency_id(doi)) 11. │ └─base::withCallingHandlers(...) 12. └─rcrossref:::GET_agency_id(doi) 13. └─rcrossref::cr_agency(x) 14. └─rcrossref (local) foo(dois, ...) 15. └─rcrossref:::cr_GET(...) 16. └─jsonlite::fromJSON(res, todf) 17. └─jsonlite:::parse_and_simplify(...) 18. └─jsonlite:::parseJSON(txt, bigint_as_char) 19. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_cn.R:81:5'): cr_cn works with different URLs ──────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_cn.R:79:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_match(...) at test-cr_cn.R:81:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─rcrossref::cr_cn("10.1126/science.169.3946.635", "text", url = "http://dx.doi.org") 7. └─rcrossref (local) cn(dois, ...) 8. ├─base::suppressWarnings(GET_agency_id(doi)) 9. │ └─base::withCallingHandlers(...) 10. └─rcrossref:::GET_agency_id(doi) 11. └─rcrossref::cr_agency(x) 12. └─rcrossref (local) foo(dois, ...) 13. └─rcrossref:::cr_GET(...) 14. └─jsonlite::fromJSON(res, todf) 15. └─jsonlite:::parse_and_simplify(...) 16. └─jsonlite:::parseJSON(txt, bigint_as_char) 17. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_funders.R:7:5'): cr_funders returns ───────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-cr_funders.R:7:5 2. │ └─base::withCallingHandlers(...) 3. └─rcrossref::cr_funders(dois = c("10.13039/100000001", "10.13039/100000015")) 4. └─plyr::llply(...) 5. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 6. └─base::lapply(pieces, .fun, ...) 7. └─rcrossref (local) FUN(X[[i]], ...) 8. └─rcrossref:::cr_GET(path, args, todf = FALSE, ...) 9. └─jsonlite::fromJSON(res, todf) 10. └─jsonlite:::parse_and_simplify(...) 11. └─jsonlite:::parseJSON(txt, bigint_as_char) 12. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_funders.R:45:5'): cr_funders fails correctly ──────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-cr_funders.R:45:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─rcrossref::cr_funders(dois = "10.13039/100000001afasfasdf") 7. └─rcrossref:::fundref_GET(...) 8. └─rcrossref:::cr_GET(path, args, todf = FALSE, ...) 9. └─jsonlite::fromJSON(res, todf) 10. └─jsonlite:::parse_and_simplify(...) 11. └─jsonlite:::parseJSON(txt, bigint_as_char) 12. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_funders.R:53:5'): cr_funders - email works ────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─withr::with_envvar(...) at test-cr_funders.R:53:5 2. │ └─base::force(code) 3. ├─testthat::expect_is(...) 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─rcrossref::cr_funders(dois = c("10.13039/100000001")) 7. └─rcrossref:::fundref_GET(...) 8. └─rcrossref:::cr_GET(path, args, todf = FALSE, ...) 9. └─jsonlite::fromJSON(res, todf) 10. └─jsonlite:::parse_and_simplify(...) 11. └─jsonlite:::parseJSON(txt, bigint_as_char) 12. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_funders.R:71:5'): cr_funders - email NULL works ───────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─withr::with_envvar(...) at test-cr_funders.R:71:5 2. │ └─base::force(code) 3. ├─testthat::expect_is(...) 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─rcrossref::cr_funders(dois = c("10.13039/100000001")) 7. └─rcrossref:::fundref_GET(...) 8. └─rcrossref:::cr_GET(path, args, todf = FALSE, ...) 9. └─jsonlite::fromJSON(res, todf) 10. └─jsonlite:::parse_and_simplify(...) 11. └─jsonlite:::parseJSON(txt, bigint_as_char) 12. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_funders.R:80:5'): cr_funders cursor works with progress bar ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_funders.R:79:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_output(...) at test-cr_funders.R:80:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─testthat::capture_output_lines(code, print, width = width) 7. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 8. │ │ ├─withr::with_output_sink(path, withVisible(code)) 9. │ │ │ └─base::force(code) 10. │ │ └─base::withVisible(code) 11. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 12. └─rcrossref::cr_funders(...) 13. └─rcrossref:::fundref_GET(...) 14. └─rr$GETcursor(...) 15. └─rcrossref:::cr_GET(...) 16. └─jsonlite::fromJSON(res, todf) 17. └─jsonlite:::parse_and_simplify(...) 18. └─jsonlite:::parseJSON(txt, bigint_as_char) 19. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_journals.R:6:5'): cr_journals returns correct class ───────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_journals.R:4:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_journals() at test-cr_journals.R:6:5 4. └─rcrossref:::journal_GET(...) 5. └─rcrossref:::cr_GET(...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_journals.R:16:5'): cr_journals paging works correctly ─────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_journals.R:14:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_equal(...) at test-cr_journals.R:16:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. ├─base::NROW(cr_journals(issn = "1803-2427", works = TRUE, limit = 5)$data) 7. └─rcrossref::cr_journals(issn = "1803-2427", works = TRUE, limit = 5) 8. └─rcrossref:::journal_GET(...) 9. └─rcrossref:::cr_GET(...) 10. └─jsonlite::fromJSON(res, todf) 11. └─jsonlite:::parse_and_simplify(...) 12. └─jsonlite:::parseJSON(txt, bigint_as_char) 13. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_journals.R:23:5'): cr_journals metadata works correctly ───── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_journals.R:21:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_equal(...) at test-cr_journals.R:23:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─rcrossref::cr_journals(query = "peerj", limit = 4) 7. └─rcrossref:::journal_GET(...) 8. └─rcrossref:::cr_GET(...) 9. └─jsonlite::fromJSON(res, todf) 10. └─jsonlite:::parse_and_simplify(...) 11. └─jsonlite:::parseJSON(txt, bigint_as_char) 12. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_journals.R:49:5'): cr_journals warns correctly ────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_journals.R:47:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_warning(...) at test-cr_journals.R:49:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─rcrossref::cr_journals(issn = c("blblbl", "1932-6203")) 9. └─plyr::llply(...) 10. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 11. └─base::lapply(pieces, .fun, ...) 12. └─rcrossref (local) FUN(X[[i]], ...) 13. └─rcrossref:::cr_GET(...) 14. └─jsonlite::fromJSON(res, todf) 15. └─jsonlite:::parse_and_simplify(...) 16. └─jsonlite:::parseJSON(txt, bigint_as_char) 17. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_journals.R:59:5'): ISSNs that used to fail badly - should fail better now ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_journals.R:57:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_warning(cr_journals("0413-6597"), "Resource not found") at test-cr_journals.R:59:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─rcrossref::cr_journals("0413-6597") 9. └─rcrossref:::journal_GET(...) 10. └─rcrossref:::cr_GET(...) 11. └─jsonlite::fromJSON(res, todf) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_journals.R:73:5'): ISSNs that fail, and works=TRUE ────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_journals.R:71:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_warning(...) at test-cr_journals.R:73:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─rcrossref::cr_journals("0074-7742", works = TRUE) 9. └─rcrossref:::journal_GET(...) 10. └─rcrossref:::cr_GET(...) 11. └─jsonlite::fromJSON(res, todf) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_journals.R:82:5'): cr_journals cursor works with progress bar ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_journals.R:81:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_output(...) at test-cr_journals.R:82:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─testthat::capture_output_lines(code, print, width = width) 7. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 8. │ │ ├─withr::with_output_sink(path, withVisible(code)) 9. │ │ │ └─base::force(code) 10. │ │ └─base::withVisible(code) 11. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 12. └─rcrossref::cr_journals(...) 13. └─rcrossref:::journal_GET(...) 14. └─rr$GETcursor(...) 15. └─rcrossref:::cr_GET(...) 16. └─jsonlite::fromJSON(res, todf) 17. └─jsonlite:::parse_and_simplify(...) 18. └─jsonlite:::parseJSON(txt, bigint_as_char) 19. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_licenses.R:6:5'): cr_licenses returns ─────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_licenses.R:4:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_licenses() at test-cr_licenses.R:6:5 4. └─rcrossref:::licenses_GET(args = args, parse = TRUE, ...) 5. └─rcrossref:::cr_GET(...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_members.R:7:5'): cr_members returns ───────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_members.R:5:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_members(member_ids = 98) at test-cr_members.R:7:5 4. └─rcrossref:::member_GET(...) 5. └─rcrossref:::cr_GET(...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_members_cursor.R:6:5'): cr_members cursor basic functionality works ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_members_cursor.R:4:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_members(...) at test-cr_members_cursor.R:6:5 4. └─rcrossref:::member_GET(...) 5. └─rr$GETcursor(...) 6. └─rcrossref:::cr_GET(...) 7. └─jsonlite::fromJSON(res, todf) 8. └─jsonlite:::parse_and_simplify(...) 9. └─jsonlite:::parseJSON(txt, bigint_as_char) 10. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_members_cursor.R:22:5'): cr_members cursor fails correctly ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_members_cursor.R:20:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_warning(cr_members(cursor = 5)) at test-cr_members_cursor.R:22:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─rcrossref::cr_members(cursor = 5) 9. └─rcrossref:::member_GET(NULL, args = args, works = works, ...) 10. └─rcrossref:::cr_GET(...) 11. └─jsonlite::fromJSON(res, todf) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_members_cursor.R:30:5'): cr_members cursor works with progress bar ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_members_cursor.R:29:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_output(...) at test-cr_members_cursor.R:30:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─testthat::capture_output_lines(code, print, width = width) 7. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 8. │ │ ├─withr::with_output_sink(path, withVisible(code)) 9. │ │ │ └─base::force(code) 10. │ │ └─base::withVisible(code) 11. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 12. └─rcrossref::cr_members(...) 13. └─rcrossref:::member_GET(...) 14. └─rr$GETcursor(...) 15. └─rcrossref:::cr_GET(...) 16. └─jsonlite::fromJSON(res, todf) 17. └─jsonlite:::parse_and_simplify(...) 18. └─jsonlite:::parseJSON(txt, bigint_as_char) 19. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_prefixes.R:6:5'): cr_prefixes returns correct class ───────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_prefixes.R:4:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_prefixes(prefixes = "10.1016") at test-cr_prefixes.R:6:5 4. └─rcrossref:::prefixes_GET(...) 5. └─rcrossref:::cr_GET(path, args, todf = FALSE, ...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_prefixes.R:15:5'): cr_prefixes paging works correctly ─────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_prefixes.R:14:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_equal(...) at test-cr_prefixes.R:15:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. ├─base::NROW(...) 7. └─rcrossref::cr_prefixes(...) 8. └─rcrossref:::prefixes_GET(...) 9. └─rcrossref:::cr_GET(path, args, todf = FALSE, ...) 10. └─jsonlite::fromJSON(res, todf) 11. └─jsonlite:::parse_and_simplify(...) 12. └─jsonlite:::parseJSON(txt, bigint_as_char) 13. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_prefixes.R:30:5'): cr_prefixes metadata works correctly ───── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_prefixes.R:28:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_equal(...) at test-cr_prefixes.R:30:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─rcrossref::cr_prefixes(...) 7. └─rcrossref:::prefixes_GET(...) 8. └─rcrossref:::cr_GET(path, args, todf = FALSE, ...) 9. └─jsonlite::fromJSON(res, todf) 10. └─jsonlite:::parse_and_simplify(...) 11. └─jsonlite:::parseJSON(txt, bigint_as_char) 12. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_prefixes.R:38:5'): cr_prefixes facet works correctly ──────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_prefixes.R:36:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_prefixes(...) at test-cr_prefixes.R:38:5 4. └─rcrossref:::prefixes_GET(...) 5. └─rcrossref:::cr_GET(path, args, todf = FALSE, ...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_prefixes.R:63:5'): cr_prefixes cursor works with progress bar ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_prefixes.R:62:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_output(...) at test-cr_prefixes.R:63:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─testthat::capture_output_lines(code, print, width = width) 7. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 8. │ │ ├─withr::with_output_sink(path, withVisible(code)) 9. │ │ │ └─base::force(code) 10. │ │ └─base::withVisible(code) 11. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 12. └─rcrossref::cr_prefixes(...) 13. └─rcrossref:::prefixes_GET(...) 14. └─rr$GETcursor(...) 15. └─rcrossref:::cr_GET(...) 16. └─jsonlite::fromJSON(res, todf) 17. └─jsonlite:::parse_and_simplify(...) 18. └─jsonlite:::parseJSON(txt, bigint_as_char) 19. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_r.R:5:5'): cr_r returns ───────────────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_r.R:4:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_r(1) at test-cr_r.R:5:5 4. └─rcrossref::cr_works(sample = sample, ...) 5. └─rcrossref:::cr_get_cursor(...) 6. └─rcrossref:::cr_GET(endpoint = path, args, todf = FALSE, ...) 7. └─jsonlite::fromJSON(res, todf) 8. └─jsonlite:::parse_and_simplify(...) 9. └─jsonlite:::parseJSON(txt, bigint_as_char) 10. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_r.R:36:5'): cr_r 0 defaults to 20 ─────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_r.R:35:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_equal(length(cr_r(0)), 20) at test-cr_r.R:36:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─rcrossref::cr_r(0) 7. └─rcrossref::cr_works(sample = sample, ...) 8. └─rcrossref:::cr_get_cursor(...) 9. └─rcrossref:::cr_GET(endpoint = path, args, todf = FALSE, ...) 10. └─jsonlite::fromJSON(res, todf) 11. └─jsonlite:::parse_and_simplify(...) 12. └─jsonlite:::parseJSON(txt, bigint_as_char) 13. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_types.R:5:5'): cr_types returns correct class ─────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_types.R:4:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_types() at test-cr_types.R:5:5 4. └─rcrossref:::types_GET(...) 5. └─rcrossref:::cr_GET(path, args, todf = FALSE, ...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_types.R:22:5'): cr_types paging works correctly ───────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_types.R:19:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_types(limit = 3) at test-cr_types.R:22:5 4. └─rcrossref:::types_GET(...) 5. └─rcrossref:::cr_GET(path, args, todf = FALSE, ...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_types.R:35:5'): cr_types metadata works correctly ─────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_types.R:34:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_gt(cr_types()$meta$count, 10) at test-cr_types.R:35:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─rcrossref::cr_types() 7. └─rcrossref:::types_GET(...) 8. └─rcrossref:::cr_GET(path, args, todf = FALSE, ...) 9. └─jsonlite::fromJSON(res, todf) 10. └─jsonlite:::parse_and_simplify(...) 11. └─jsonlite:::parseJSON(txt, bigint_as_char) 12. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_types.R:42:5'): cr_types facet works correctly ────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_types.R:41:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_types(...) at test-cr_types.R:42:5 4. └─rcrossref:::types_GET(...) 5. └─rcrossref:::cr_GET(path, args, todf = FALSE, ...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_types.R:58:5'): cr_types cursor works with progress bar ───── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_types.R:57:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_output(...) at test-cr_types.R:58:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─testthat::capture_output_lines(code, print, width = width) 7. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 8. │ │ ├─withr::with_output_sink(path, withVisible(code)) 9. │ │ │ └─base::force(code) 10. │ │ └─base::withVisible(code) 11. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 12. └─rcrossref::cr_types(...) 13. └─rcrossref:::types_GET(...) 14. └─rr$GETcursor(...) 15. └─rcrossref:::cr_GET(...) 16. └─jsonlite::fromJSON(res, todf) 17. └─jsonlite:::parse_and_simplify(...) 18. └─jsonlite:::parseJSON(txt, bigint_as_char) 19. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works.R:6:5'): cr_works returns ───────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:4:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_works(query = "NSF") at test-cr_works.R:6:5 4. └─rcrossref:::cr_get_cursor(...) 5. └─rcrossref:::cr_GET(endpoint = path, args, todf = FALSE, ...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works.R:70:5'): cr_works warns correctly ──────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:68:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_warning(...) at test-cr_works.R:70:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─rcrossref::cr_works(dois = c("blblbl", "10.1038/nnano.2014.279")) 9. └─plyr::llply(...) 10. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 11. └─base::lapply(pieces, .fun, ...) 12. └─rcrossref (local) FUN(X[[i]], ...) 13. └─rcrossref:::cr_GET(endpoint = path, args, todf = FALSE, ...) 14. └─jsonlite::fromJSON(res, todf) 15. └─jsonlite:::parse_and_simplify(...) 16. └─jsonlite:::parseJSON(txt, bigint_as_char) 17. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works.R:79:5'): cr_works - parses links data correctly ────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:77:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_works(filter = c(has_full_text = FALSE), limit = 10) at test-cr_works.R:79:5 4. └─rcrossref:::cr_get_cursor(...) 5. └─rcrossref:::cr_GET(endpoint = path, args, todf = FALSE, ...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works.R:97:5'): cr_works - parses funders correctly ───────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:94:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_works(doi) at test-cr_works.R:97:5 4. └─rcrossref:::cr_get_cursor(...) 5. └─rcrossref:::cr_GET(endpoint = path, args, todf = FALSE, ...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works.R:162:5'): cr_works - parses affiliation inside authors correctly ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:159:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_works(doi) at test-cr_works.R:162:5 4. └─rcrossref:::cr_get_cursor(...) 5. └─rcrossref:::cr_GET(endpoint = path, args, todf = FALSE, ...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works.R:171:5'): cr_works - select works ──────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:169:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_works(query = "science", select = c("DOI", "title")) at test-cr_works.R:171:5 4. └─rcrossref:::cr_get_cursor(...) 5. └─rcrossref:::cr_GET(endpoint = path, args, todf = FALSE, ...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works.R:178:6'): cr_works - email works ───────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:177:3 2. │ └─cassette$call_block(...) 3. ├─withr::with_envvar(...) at test-cr_works.R:178:6 4. │ └─base::force(code) 5. ├─testthat::expect_is(cr_works(query = "NSF"), "list") 6. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 7. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 8. └─rcrossref::cr_works(query = "NSF") 9. └─rcrossref:::cr_get_cursor(...) 10. └─rcrossref:::cr_GET(endpoint = path, args, todf = FALSE, ...) 11. └─jsonlite::fromJSON(res, todf) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works.R:194:6'): cr_works - email NULL works ──────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:193:3 2. │ └─cassette$call_block(...) 3. ├─withr::with_envvar(...) at test-cr_works.R:194:6 4. │ └─base::force(code) 5. ├─testthat::expect_is(cr_works(query = "NSF"), "list") 6. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 7. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 8. └─rcrossref::cr_works(query = "NSF") 9. └─rcrossref:::cr_get_cursor(...) 10. └─rcrossref:::cr_GET(endpoint = path, args, todf = FALSE, ...) 11. └─jsonlite::fromJSON(res, todf) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works.R:205:5'): cr_works - handles empty funder item ─────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:204:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_works(dois = "10.3389/fgene.2017.00147") at test-cr_works.R:205:5 4. └─rcrossref:::cr_get_cursor(...) 5. └─rcrossref:::cr_GET(endpoint = path, args, todf = FALSE, ...) 6. └─jsonlite::fromJSON(res, todf) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works.R:241:5'): content domain parsing fix ───────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:240:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_is(...) at test-cr_works.R:241:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─rcrossref::cr_works(dois = "10.7287/peerj.3819v0.1/reviews/2") 7. └─rcrossref:::cr_get_cursor(...) 8. └─rcrossref:::cr_GET(endpoint = path, args, todf = FALSE, ...) 9. └─jsonlite::fromJSON(res, todf) 10. └─jsonlite:::parse_and_simplify(...) 11. └─jsonlite:::parseJSON(txt, bigint_as_char) 12. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works_.R:15:5'): cr_works_ works ──────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. └─rcrossref:::pj(a) at test-cr_works_.R:15:5 2. └─jsonlite::fromJSON(x) at tests/testthat/helper-rcrossref.R:10:7 3. └─jsonlite:::parse_and_simplify(...) 4. └─jsonlite:::parseJSON(txt, bigint_as_char) 5. └─jsonlite:::parse_string(txt, bigint_as_char) ── Failure ('test-cr_works_.R:47:5'): cr_works_ warns correctly ──────────────── `cr_works_(dois = c("blblbl", "10.1038/nnano.2014.279"))` did not produce any warnings. ── Error ('test-cr_works_.R:52:5'): cr_works_ warns correctly ────────────────── Error in `res[[1]]$message`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. └─testthat::expect_null(res[[1]]$message) at test-cr_works_.R:52:5 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Error ('test-cr_works_.R:59:5'): cr_works_ - parses links data correctly ──── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. └─rcrossref:::pj(cr_works_(filter = c(has_full_text = FALSE), limit = 3)) at test-cr_works_.R:59:5 2. └─jsonlite::fromJSON(x) at tests/testthat/helper-rcrossref.R:10:7 3. └─jsonlite:::parse_and_simplify(...) 4. └─jsonlite:::parseJSON(txt, bigint_as_char) 5. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works_.R:80:5'): cr_works_ - parses funders correctly ─────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. └─rcrossref:::pj(aa) at test-cr_works_.R:80:5 2. └─jsonlite::fromJSON(x) at tests/testthat/helper-rcrossref.R:10:7 3. └─jsonlite:::parse_and_simplify(...) 4. └─jsonlite:::parseJSON(txt, bigint_as_char) 5. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works_cursor.R:6:5'): cr_works cursor basic functionality works ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works_cursor.R:4:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::cr_works(...) at test-cr_works_cursor.R:6:5 4. └─rcrossref:::cr_get_cursor(...) 5. └─rr$GETcursor(...) 6. └─rcrossref:::cr_GET(...) 7. └─jsonlite::fromJSON(res, todf) 8. └─jsonlite:::parse_and_simplify(...) 9. └─jsonlite:::parseJSON(txt, bigint_as_char) 10. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works_cursor.R:22:5'): cr_works cursor fails correctly ────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works_cursor.R:20:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_warning(cr_works(cursor = 5)) at test-cr_works_cursor.R:22:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─rcrossref::cr_works(cursor = 5) 9. └─rcrossref:::cr_get_cursor(...) 10. └─rr$GETcursor(...) 11. └─rcrossref:::cr_GET(...) 12. └─jsonlite::fromJSON(res, todf) 13. └─jsonlite:::parse_and_simplify(...) 14. └─jsonlite:::parseJSON(txt, bigint_as_char) 15. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-cr_works_cursor.R:30:5'): cr_works cursor works with progress bar ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works_cursor.R:29:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_output(...) at test-cr_works_cursor.R:30:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─testthat::capture_output_lines(code, print, width = width) 7. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 8. │ │ ├─withr::with_output_sink(path, withVisible(code)) 9. │ │ │ └─base::force(code) 10. │ │ └─base::withVisible(code) 11. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 12. └─rcrossref::cr_works(...) 13. └─rcrossref:::cr_get_cursor(...) 14. └─rr$GETcursor(...) 15. └─rcrossref:::cr_GET(...) 16. └─jsonlite::fromJSON(res, todf) 17. └─jsonlite:::parse_and_simplify(...) 18. └─jsonlite:::parseJSON(txt, bigint_as_char) 19. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-id_converter.R:6:5'): id_converter returns ───────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-id_converter.R:4:3 2. │ └─cassette$call_block(...) 3. └─rcrossref::id_converter(doi) at test-id_converter.R:6:5 4. └─jsonlite::fromJSON(res$parse("UTF-8")) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) [ FAIL 60 | WARN 0 | SKIP 4 | PASS 38 ] Error: Test failures Execution halted Package: rdatacite Check: tests New result: ERROR Running ‘test-all.R’ [3s/3s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library("testthat") > test_check("rdatacite") Loading required package: rdatacite [ FAIL 7 | WARN 0 | SKIP 1 | PASS 33 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-dc_cn.R:19:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-dc_activities.R:5:5'): dc_activities works ───────────────────── Error in `res$raise_for_ct_json()`: content-type header is missing Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dc_activities.R:4:3 2. │ └─cassette$call_block(...) 3. └─rdatacite::dc_activities(limit = 10) at test-dc_activities.R:5:5 4. ├─rdatacite:::as_dc(dc_GET("activities", args, ...), "activities") 5. │ └─base::structure(x, class = "dc", fun = fun) 6. └─rdatacite:::dc_GET("activities", args, ...) 7. └─res$raise_for_ct_json() ── Error ('test-dc_client_prefixes.R:5:5'): dc_client_prefixes works ─────────── Error in `res$raise_for_ct_json()`: content-type header is missing Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dc_client_prefixes.R:4:3 2. │ └─cassette$call_block(...) 3. └─rdatacite::dc_client_prefixes(limit = 5) at test-dc_client_prefixes.R:5:5 4. ├─rdatacite:::as_dc(dc_GET("client-prefixes", args, ...), "client-prefixes") 5. │ └─base::structure(x, class = "dc", fun = fun) 6. └─rdatacite:::dc_GET("client-prefixes", args, ...) 7. └─res$raise_for_ct_json() ── Error ('test-dc_clients.R:5:5'): dc_clients works ─────────────────────────── Error in `res$raise_for_ct_json()`: content-type header is missing Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dc_clients.R:4:3 2. │ └─cassette$call_block(...) 3. └─rdatacite::dc_clients(limit = 5) at test-dc_clients.R:5:5 4. ├─rdatacite:::as_dc(dc_GET("clients", args, ...), "clients") 5. │ └─base::structure(x, class = "dc", fun = fun) 6. └─rdatacite:::dc_GET("clients", args, ...) 7. └─res$raise_for_ct_json() ── Failure ('test-dc_cn.R:9:3'): dc_cn works ─────────────────────────────────── `i` does not match "Petchey". Actual value: "" Backtrace: ▆ 1. └─testthat::expect_match(i, "Petchey") at test-dc_cn.R:9:3 2. └─testthat:::expect_match_(...) ── Failure ('test-dc_cn.R:9:3'): dc_cn works ─────────────────────────────────── `i` does not match "Petchey". Actual value: "" Backtrace: ▆ 1. └─testthat::expect_match(i, "Petchey") at test-dc_cn.R:9:3 2. └─testthat:::expect_match_(...) ── Error ('test-dc_dois.R:5:5'): dc_dois works ───────────────────────────────── Error in `res$raise_for_ct_json()`: content-type header is missing Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dc_dois.R:4:3 2. │ └─cassette$call_block(...) 3. └─rdatacite::dc_dois(limit = 5) at test-dc_dois.R:5:5 4. ├─rdatacite:::as_dc(dc_GET("dois", args, ...), "dois") 5. │ └─base::structure(x, class = "dc", fun = fun) 6. └─rdatacite:::dc_GET("dois", args, ...) 7. └─res$raise_for_ct_json() ── Error ('test-dc_events.R:5:5'): dc_events works ───────────────────────────── Error in `res$raise_for_ct_json()`: content-type header is missing Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dc_events.R:4:3 2. │ └─cassette$call_block(...) 3. └─rdatacite::dc_events(limit = 5) at test-dc_events.R:5:5 4. ├─rdatacite:::as_dc(dc_GET("events", args, ...), "events") 5. │ └─base::structure(x, class = "dc", fun = fun) 6. └─rdatacite:::dc_GET("events", args, ...) 7. └─res$raise_for_ct_json() [ FAIL 7 | WARN 0 | SKIP 1 | PASS 33 ] Error: Test failures Execution halted Package: rgbif Check: tests New result: ERROR Running ‘test-all.R’ [12s/14s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library(testthat) > test_check("rgbif") Loading required package: rgbif [ FAIL 70 | WARN 2 | SKIP 136 | PASS 394 ] ══ Skipped tests (136) ═════════════════════════════════════════════════════════ • On CRAN (136): 'test-country_codes.r:4:3', 'test-dataset_export.R:3:1', 'test-dataset_gridded.R:3:1', 'test-dataset_uuid_funs.R:78:3', 'test-derived_dataset.R:3:3', 'test-derived_dataset.R:51:3', 'test-derived_dataset.R:186:3', 'test-derived_dataset.R:347:3', 'test-downloads.R:3:3', 'test-downloads.R:16:3', 'test-downloads.R:43:3', 'test-downloads.R:80:3', 'test-downloads.R:87:3', 'test-downloads.R:101:3', 'test-downloads.R:116:3', 'test-elevation.R:3:3', 'test-elevation.R:16:3', 'test-elevation.R:32:3', 'test-elevation.R:59:3', 'test-elevation.R:84:3', 'test-enumeration.r:4:3', 'test-enumeration.r:23:3', 'test-gbif_geocode.R:3:5', 'test-gbif_geocode.R:60:3', 'test-gbif_issues_lookup.R:4:3', 'test-gbif_issues_lookup.R:39:3', 'test-gbif_names.R:4:3', 'test-gbif_names.R:28:3', 'test-gbif_photos.R:4:3', 'test-lit_search.R:5:5', 'test-lit_search.R:120:3', 'test-map_fetch.R:3:1', 'test-mvt_fetch.R:4:3', 'test-mvt_fetch.R:15:3', 'test-name_backbone.r:29:3', 'test-name_backbone_checklist.R:4:3', 'test-name_backbone_checklist.R:184:3', 'test-name_backbone_checklist.R:273:3', 'test-name_backbone_checklist.R:368:3', 'test-name_backbone_checklist.R:466:3', 'test-name_backbone_checklist.R:478:3', 'test-name_lookup.r:4:3', 'test-name_lookup.r:61:3', 'test-name_lookup.r:96:3', 'test-name_lookup.r:115:3', 'test-name_lookup.r:130:3', 'test-name_lookup.r:164:3', 'test-name_suggest.r:58:5', 'test-name_usage.r:4:3', 'test-occ_count.r:83:3', 'test-occ_data.R:7:3', 'test-occ_data.R:38:3', 'test-occ_data.R:71:3', 'test-occ_data.R:114:3', 'test-occ_data.R:188:3', 'test-occ_data.R:334:3', 'test-occ_data.R:348:3', 'test-occ_data.R:363:3', 'test-occ_data.R:381:3', 'test-occ_data.R:398:3', 'test-occ_data.R:415:3', 'test-occ_data.R:434:3', 'test-occ_data.R:451:3', 'test-occ_data.R:468:3', 'test-occ_data.R:485:3', 'test-occ_data.R:502:3', 'test-occ_data.R:519:3', 'test-occ_data.R:537:3', 'test-occ_data.R:555:3', 'test-occ_data.R:573:3', 'test-occ_data.R:588:3', 'test-occ_data.R:604:3', 'test-occ_download.R:13:3', 'test-occ_download_cached.R:10:3', 'test-occ_download_cached.R:75:3', 'test-occ_download_cached.R:115:3', 'test-occ_download_cancel.R:2:3', 'test-occ_download_cancel.R:19:3', 'test-occ_download_cancel.R:27:3', 'test-occ_download_dataset_activity.R:4:3', 'test-occ_download_dataset_activity.R:26:3', 'test-occ_download_datasets.R:4:3', 'test-occ_download_datasets.R:27:3', 'test-occ_download_get.R:2:3', 'test-occ_download_import.R:2:3', 'test-occ_download_import.R:17:3', 'test-occ_download_import.R:40:3', 'test-occ_download_import.R:57:3', 'test-occ_download_import.R:83:3', 'test-occ_download_list.R:10:3', 'test-occ_download_list.R:28:3', 'test-occ_download_list.R:51:3', 'test-occ_download_meta.R:2:3', 'test-occ_download_meta.R:37:3', 'test-occ_download_prep.R:2:3', 'test-occ_download_prep.R:37:3', 'test-occ_download_prep.R:54:3', 'test-occ_download_queue.R:14:3', 'test-occ_download_queue.R:36:3', 'test-occ_download_queue.R:77:3', 'test-occ_download_sql.R:3:3', 'test-occ_download_sql.R:17:3', 'test-occ_download_wait.R:2:3', 'test-occ_download_wait.R:21:3', 'test-occ_get.r:43:3', 'test-occ_search.r:7:3', 'test-occ_search.r:35:3', 'test-occ_search.r:67:3', 'test-occ_search.r:101:3', 'test-occ_search.r:114:3', 'test-occ_search.r:128:3', 'test-occ_search.r:143:3', 'test-occ_search.r:161:3', 'test-occ_search.r:178:3', 'test-occ_search.r:195:3', 'test-occ_search.r:214:3', 'test-occ_search.r:231:3', 'test-occ_search.r:248:3', 'test-occ_search.r:266:3', 'test-occ_search.r:283:3', 'test-occ_search.r:300:3', 'test-occ_search.r:318:3', 'test-occ_search.r:336:3', 'test-occ_search.r:354:3', 'test-occ_search.r:369:3', 'test-occ_search.r:386:3', 'test-occ_search.r:436:3', 'test-occ_search.r:510:3', 'test-organizations.r:4:3', 'test-organizations.r:67:3', 'test-print_gbif.R:4:3', 'test-print_gbif.R:23:3', 'test-wkt_large.R:36:3', 'test-wkt_large.R:72:3', 'test-wkt_large.R:91:3', 'test-wkt_parse.R:34:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-dataset.R:5:5'): dataset works as expected ───────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dataset.R:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::dataset(limit = 3) at test-dataset.R:5:5 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-dataset_doi.R:5:4'): dataset_doi work as expected ────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dataset_doi.R:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::dataset_doi("10.15468/igasai") at test-dataset_doi.R:5:4 4. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-dataset_list_funs.R:6:3'): dataset_list_funs work as expected. ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dataset_list_funs.R:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::dataset_noendpoint(limit = 3) at test-dataset_list_funs.R:6:3 4. └─rgbif:::dataset_list_get_(...) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-dataset_search.r:5:5'): dataset_search works as expected ─────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dataset_search.r:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::dataset_search(limit = 0) at test-dataset_search.r:5:5 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-dataset_search.r:303:3'): dataset_search facets work as expected ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dataset_search.r:301:3 2. │ └─cassette$call_block(...) 3. └─rgbif::dataset_search(facet = "doi", limit = 0, facetLimit = 5) at test-dataset_search.r:303:3 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-dataset_suggest.r:6:5'): dataset_suggest works as expected ───── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dataset_suggest.r:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::dataset_suggest(type = "OCCURRENCE", limit = 5) at test-dataset_suggest.r:6:5 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-dataset_suggest.r:217:5'): Return just descriptions ──────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dataset_suggest.r:216:3 2. │ └─cassette$call_block(...) 3. └─rgbif::dataset_suggest(type = "OCCURRENCE", description = TRUE) at test-dataset_suggest.r:217:5 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-dataset_uuid_funs.R:5:3'): dataset_uuid_funs work as expected ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-dataset_uuid_funs.R:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::dataset_get("38b4c89f-584c-41bb-bd8f-cd1def33e92f") at test-dataset_uuid_funs.R:5:3 4. ├─rgbif:::rgbif_compact(gbif_GET(url, args = NULL, TRUE, curlopts)) 5. │ └─base::Filter(Negate(is_null_or_na), l) 6. │ ├─base::unlist(lapply(x, f)) 7. │ └─base::lapply(x, f) 8. └─rgbif:::gbif_GET(url, args = NULL, TRUE, curlopts) 9. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 10. └─jsonlite:::parse_and_simplify(...) 11. └─jsonlite:::parseJSON(txt, bigint_as_char) 12. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-gbif_citation.R:28:5'): gbif_citation w/ occ_download_meta ───── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-gbif_citation.R:27:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_download_meta("0000122-171020152545675") at test-gbif_citation.R:28:5 4. └─jsonlite::fromJSON(tt, FALSE) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-gbif_citation.R:37:5'): gbif_citation w/ downloadkey ─────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-gbif_citation.R:36:3 2. │ └─cassette$call_block(...) 3. ├─rgbif::gbif_citation("0000122-171020152545675") at test-gbif_citation.R:37:5 4. └─rgbif:::gbif_citation.character("0000122-171020152545675") 5. ├─rgbif:::gbif_citation.occ_download_meta(occ_download_meta(x)) 6. └─rgbif::occ_download_meta(x) 7. └─jsonlite::fromJSON(tt, FALSE) 8. └─jsonlite:::parse_and_simplify(...) 9. └─jsonlite:::parseJSON(txt, bigint_as_char) 10. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-installations.r:5:5'): query all installations returns the correct class ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-installations.r:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::installations() at test-installations.r:5:5 4. └─rgbif:::getdata(data) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-installations.r:15:5'): single dataset query returns the correct ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-installations.r:14:3 2. │ └─cassette$call_block(...) 3. └─rgbif::installations(uuid = "b77901f9-d9b0-47fa-94e0-dd96450aa2b4") at test-installations.r:15:5 4. └─rgbif:::getdata(data) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-installations.r:30:5'): contact returns the correct ──────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-installations.r:29:3 2. │ └─cassette$call_block(...) 3. └─rgbif::installations(data = "contact", uuid = "2e029a0c-87af-42e6-87d7-f38a50b78201") at test-installations.r:30:5 4. └─rgbif:::getdata(data) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-installations.r:42:5'): search for deleted and nonPublishing installations returns the correct ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-installations.r:41:3 2. │ └─cassette$call_block(...) 3. └─rgbif::installations(data = "deleted", limit = 2) at test-installations.r:42:5 4. └─rgbif:::getdata(data) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_backbone.r:5:5'): name_backbone returns the correct class ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_backbone.r:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_backbone(name = "Helianthus annuus", rank = "species") at test-name_backbone.r:5:5 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_backbone.r:35:5'): name_backbone verbose=TRUE ───────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_backbone.r:34:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_backbone(name = "Calopteryx", rank = "GENUS") at test-name_backbone.r:35:5 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_issues.R:6:5'): name_issues ─────────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_issues.R:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(name = "Lupus", limit = 100) at test-name_issues.R:6:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_lookup.r:32:5'): works with habitat parameter ───────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_lookup.r:30:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_lookup(facet = "habitat", limit = 0) at test-name_lookup.r:32:5 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_lookup.r:152:5'): name_lookup constituentKey works as expected. ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_lookup.r:151:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_lookup(constituentKey = "7ddf754f-d193-4cc9-b351-99906754a03b") at test-name_lookup.r:152:5 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_parse.R:6:5'): returns the correct class ────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_parse.R:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_parse(scientificname = "x Agropogon littoralis") at test-name_parse.R:6:5 4. └─jsonlite::fromJSON(tt$parse("UTF-8"), FALSE) 5. └─jsonlite:::parse_and_simplify(...) 6. └─jsonlite:::parseJSON(txt, bigint_as_char) 7. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_suggest.r:5:5'): name_suggest returns the correct ───────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_suggest.r:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_suggest(q = "Puma concolor") at test-name_suggest.r:5:5 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_suggest.r:47:5'): args that support many repeated uses in one request ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_suggest.r:46:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_suggest(rank = c("family", "genus")) at test-name_suggest.r:47:5 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:23:5'): name_usage works ────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:22:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 1) at test-name_usage.r:23:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:50:5'): name_usage name route works ─────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:49:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 5231190, data = "name") at test-name_usage.r:50:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:63:5'): name_usage parents route works ──────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:62:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 5231190, data = "parents") at test-name_usage.r:63:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:77:5'): name_usage children route works ─────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:76:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 5231190, data = "children") at test-name_usage.r:77:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:91:5'): name_usage related route works ──────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:90:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 5231190, data = "related") at test-name_usage.r:91:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:104:5'): name_usage synonyms route works ────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:103:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 5231190, data = "synonyms") at test-name_usage.r:104:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:117:5'): name_usage descriptions route works ────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:116:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 5231190, data = "descriptions") at test-name_usage.r:117:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:131:5'): name_usage distributions route works ───── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:130:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 5231190, data = "distributions") at test-name_usage.r:131:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:144:5'): name_usage media route works ───────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:143:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 5231190, data = "media") at test-name_usage.r:144:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:157:5'): name_usage references route works ──────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:156:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 5231190, data = "references") at test-name_usage.r:157:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:171:5'): name_usage speciesProfiles route works ─── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:170:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 5231190, data = "speciesProfiles") at test-name_usage.r:171:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:184:5'): name_usage vernacularNames route works ─── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:183:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 5231190, data = "vernacularNames") at test-name_usage.r:184:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:197:5'): name_usage typeSpecimens route works ───── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:196:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 5231190, data = "typeSpecimens") at test-name_usage.r:197:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-name_usage.r:211:5'): name_usage iucnRedListCategory route works ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-name_usage.r:210:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_usage(key = 7412043, data = "iucnRedListCategory") at test-name_usage.r:211:5 4. └─rgbif:::getdata(data, key, uuid, shortname, args, curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-network.R:6:5'): returns the correct ─────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-network.R:5:3 2. │ └─cassette$call_block(...) 3. └─rgbif::network() at test-network.R:6:5 4. └─rgbif:::getdata(data) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-network.R:17:5'): network_constituents ───────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-network.R:16:3 2. │ └─cassette$call_block(...) 3. └─rgbif::network_constituents("4b0d8edb-7504-42c4-9349-63e86c01bf97") at test-network.R:17:5 4. ├─tibble::as_tibble(...) 5. └─rgbif::network(uuid, data = "constituents", start = start, limit = limit) 6. └─rgbif:::getdata(data) 7. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 8. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 9. └─jsonlite:::parse_and_simplify(...) 10. └─jsonlite:::parseJSON(txt, bigint_as_char) 11. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-nodes.r:5:5'): nodes ─────────────────────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-nodes.r:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::nodes() at test-nodes.r:5:5 4. └─rgbif:::getdata(data) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-oai.R:5:5'): gbif_oai_identify ───────────────────────────────── Error in `path_to_connection(x)`: '' does not exist in current working directory ('/home/hornik/tmp/CRAN_recheck/rgbif.Rcheck/tests/testthat'). Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oai.R:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::gbif_oai_identify() at test-oai.R:5:5 4. ├─base::as.list(oai::id(url = gboai(), ...)) 5. └─oai::id(url = gboai(), ...) 6. ├─plyr::rbind.fill(lapply(url, id_, as = as, ...)) 7. └─base::lapply(url, id_, as = as, ...) 8. └─oai (local) FUN(X[[i]], ...) 9. ├─oai:::get_headers(xml_children(xml2::read_xml(tt))[[3]]) 10. │ ├─base::lapply(...) 11. │ └─xml2::xml_children(m) 12. │ └─xml2:::nodeset_apply(x, function(x) .Call(node_children, x, TRUE)) 13. ├─xml2::xml_children(xml2::read_xml(tt)) 14. │ └─xml2:::nodeset_apply(x, function(x) .Call(node_children, x, TRUE)) 15. ├─xml2::read_xml(tt) 16. └─xml2:::read_xml.character(tt) 17. └─xml2:::path_to_connection(x) 18. └─xml2:::check_path(path) 19. └─cli::cli_abort(msg, call = call) 20. └─rlang::abort(...) ── Error ('test-oai.R:15:5'): gbif_oai_list_metadataformats ──────────────────── Error in `path_to_connection(x)`: '' does not exist in current working directory ('/home/hornik/tmp/CRAN_recheck/rgbif.Rcheck/tests/testthat'). Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oai.R:14:3 2. │ └─cassette$call_block(...) 3. └─rgbif::gbif_oai_list_metadataformats() at test-oai.R:15:5 4. └─oai::list_metadataformats(url = gboai(), id = id, ...) 5. └─oai:::one_mf(id, url, ...) 6. ├─xml2::read_xml(out) 7. └─xml2:::read_xml.character(out) 8. └─xml2:::path_to_connection(x) 9. └─xml2:::check_path(path) 10. └─cli::cli_abort(msg, call = call) 11. └─rlang::abort(...) ── Error ('test-oai.R:25:5'): gbif_oai_list_sets ─────────────────────────────── Error in `while_oai(url, args, token, as, ...)`: cannot parse downloaded XML, dumped raw XML to file ./oaidump_2025-07-21_19-01-41.48127323b1a925507e4cxml Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oai.R:24:3 2. │ └─cassette$call_block(...) 3. └─rgbif::gbif_oai_list_sets() at test-oai.R:25:5 4. └─oai::list_sets(url = gboai(), token = token, as = as, ...) 5. └─oai:::while_oai(url, args, token, as, ...) ── Error ('test-oai.R:37:5'): gbif_oai_list_identifiers ──────────────────────── Error in `while_oai(url, args, token, as, ...)`: cannot parse downloaded XML, dumped raw XML to file ./oaidump_2025-07-21_19-01-41.58907323b1a965e73f5dxml Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oai.R:35:3 2. │ └─cassette$call_block(...) 3. └─rgbif::gbif_oai_list_identifiers(from = "2019-01-15", until = "2019-01-30") at test-oai.R:37:5 4. └─oai::list_identifiers(...) 5. └─oai:::while_oai(url, args, token, as, ...) ── Error ('test-oai.R:59:5'): gbif_oai_get_records ───────────────────────────── Error in `path_to_connection(x)`: '' does not exist in current working directory ('/home/hornik/tmp/CRAN_recheck/rgbif.Rcheck/tests/testthat'). Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-oai.R:58:3 2. │ └─cassette$call_block(...) 3. └─rgbif::gbif_oai_get_records("9c4e36c1-d3f9-49ce-8ec1-8c434fa9e6eb") at test-oai.R:59:5 4. └─oai::get_records(...) 5. ├─stats::setNames(...) 6. └─base::lapply(...) 7. └─oai (local) FUN(X[[i]], ...) 8. ├─xml2::read_xml(tt) 9. └─xml2:::read_xml.character(tt) 10. └─xml2:::path_to_connection(x) 11. └─xml2:::check_path(path) 12. └─cli::cli_abort(msg, call = call) 13. └─rlang::abort(...) ── Error ('test-occ_count.r:5:5'): occ_count ─────────────────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_count.r:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_count() at test-occ_count.r:5:5 4. └─rgbif::occ_search(...) 5. └─rgbif (local) .get_occ_search(curlopts = curlopts) 6. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 7. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 8. └─jsonlite:::parse_and_simplify(...) 9. └─jsonlite:::parseJSON(txt, bigint_as_char) 10. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_count.r:39:5'): occ_count facets work ────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_count.r:38:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_count(facet = "year", occurrenceStatus = NULL) at test-occ_count.r:39:5 4. └─rgbif::occ_search(...) 5. └─rgbif (local) .get_occ_search(curlopts = curlopts) 6. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 7. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 8. └─jsonlite:::parse_and_simplify(...) 9. └─jsonlite:::parseJSON(txt, bigint_as_char) 10. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_count.r:112:3'): occ_count legacy params ─────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_count.r:111:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_warning(occ_count(georeferenced = TRUE), "arg 'georeferenced' is deprecated since rgbif 3.7.6, use 'hasCoordinate' and 'hasGeospatialIssue' instead.") at test-occ_count.r:112:3 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─rgbif::occ_count(georeferenced = TRUE) 9. └─rgbif::occ_search(...) 10. └─rgbif (local) .get_occ_search(curlopts = curlopts) 11. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 12. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 13. └─jsonlite:::parse_and_simplify(...) 14. └─jsonlite:::parseJSON(txt, bigint_as_char) 15. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_count_.R:5:5'): occ_count_ custom functions work ─────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_count_.R:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_count_country() at test-occ_count_.R:5:5 4. ├─tibble::as_tibble(gbif_GET(url, args = args)) 5. └─rgbif:::gbif_GET(url, args = args) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_data.R:54:5'): returns the correct class ─────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_data.R:53:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_data(catalogNumber = "6845144") at test-occ_data.R:54:5 4. └─rgbif (local) .get_occ_data(curlopts = curlopts) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_data.R:96:5'): returns the correct stuff ─────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_data.R:95:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_is(...) at test-occ_data.R:96:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─rgbif::occ_data(taxonKey = key, depth = "5", limit = 2) 7. └─rgbif (local) .get_occ_data(curlopts = curlopts) 8. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 9. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 10. └─jsonlite:::parse_and_simplify(...) 11. └─jsonlite:::parseJSON(txt, bigint_as_char) 12. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_data.R:107:5'): returns the correct dimensions ───────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_data.R:106:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_data(...) at test-occ_data.R:107:5 4. └─rgbif (local) .get_occ_data(curlopts = curlopts) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_data.R:131:5'): scientificName basic use works - no synonyms ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_data.R:129:3 2. │ └─cassette$call_block(...) 3. ├─base::suppressMessages(...) at test-occ_data.R:131:5 4. │ └─base::withCallingHandlers(...) 5. └─rgbif::occ_data(scientificName = "Pulsatilla patens", limit = 2) 6. └─rgbif (local) .get_occ_data(curlopts = curlopts) 7. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 8. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 9. └─jsonlite:::parse_and_simplify(...) 10. └─jsonlite:::parseJSON(txt, bigint_as_char) 11. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_data.R:290:5'): works with parameters that allow many inputs ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_data.R:288:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_data(recordedBy = c("smith", "BJ Stacey"), limit = 10) at test-occ_data.R:290:5 4. └─base::lapply(...) 5. └─rgbif (local) FUN(X[[i]], ...) 6. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 7. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 8. └─jsonlite:::parse_and_simplify(...) 9. └─jsonlite:::parseJSON(txt, bigint_as_char) 10. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_data.R:310:5'): key and gbifID fields are character class ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_data.R:309:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_data(taxonKey = 9206251, limit = 3) at test-occ_data.R:310:5 4. └─rgbif (local) .get_occ_data(curlopts = curlopts) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_data.R:319:5'): various fields are dropped - so should be absent ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_data.R:318:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_data(limit = 3) at test-occ_data.R:319:5 4. └─rgbif (local) .get_occ_data(curlopts = curlopts) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_download_describe.R:3:5'): occ_download_describe works as expected ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_download_describe.R:2:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_download_describe("dwca") at test-occ_download_describe.R:3:5 4. └─rgbif:::gbif_GET(url, args = NULL, parse = TRUE) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_download_doi.R:6:5'): occ_download_doi ───────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_download_doi.R:5:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_download_doi("10.15468/dl.hx3uzz") at test-occ_download_doi.R:6:5 4. └─rgbif:::gbif_GET(url, args = NULL, parse = TRUE) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_get.r:5:5'): returns the correct class ───────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_get.r:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_get(key = 855998194) at test-occ_get.r:5:5 4. └─rgbif:::occ_get_helper(FALSE, key, fields, curlopts) 5. └─base::lapply(...) 6. └─rgbif (local) FUN(X[[i]], ...) 7. └─rgbif:::gbif_GET(url, NULL, verbatim, curlopts) 8. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 9. └─jsonlite:::parse_and_simplify(...) 10. └─jsonlite:::parseJSON(txt, bigint_as_char) 11. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_get.r:51:5'): works w/: fields all, & return extensions data ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_get.r:50:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_get_verbatim(keys[1], fields = "all") at test-occ_get.r:51:5 4. └─rgbif:::occ_get_helper(TRUE, key, fields, curlopts) 5. └─base::lapply(...) 6. └─rgbif (local) FUN(X[[i]], ...) 7. └─rgbif:::gbif_GET(url, NULL, verbatim, curlopts) 8. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 9. └─jsonlite:::parse_and_simplify(...) 10. └─jsonlite:::parseJSON(txt, bigint_as_char) 11. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_metadata.r:5:5'): returns the correct class ──────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_metadata.r:4:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_metadata(type = "catalogNumber", q = 122, pretty = FALSE) at test-occ_metadata.r:5:5 4. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_search.r:50:5'): returns the correct class ───────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_search.r:49:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_search(...) at test-occ_search.r:50:5 4. └─rgbif (local) .get_occ_search(curlopts = curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_search.r:85:5'): returns the correct class ───────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_search.r:84:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_search(taxonKey = key, limit = 2) at test-occ_search.r:85:5 4. └─rgbif (local) .get_occ_search(curlopts = curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_search.r:416:5'): returns the correct stuff ──────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_search.r:415:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_backbone(name = "Salmo salar", kingdom = "animals") at test-occ_search.r:416:5 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_search.r:427:5'): returns the correct dimensions ─────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_search.r:426:3 2. │ └─cassette$call_block(...) 3. └─rgbif::name_backbone(name = "Puma concolor", kingdom = "animals") at test-occ_search.r:427:5 4. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_search.r:452:5'): scientificName basic use works - no synonyms ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_search.r:450:3 2. │ └─cassette$call_block(...) 3. ├─base::suppressMessages(...) at test-occ_search.r:452:5 4. │ └─base::withCallingHandlers(...) 5. └─rgbif::occ_search(...) 6. └─rgbif (local) .get_occ_search(curlopts = curlopts) 7. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 8. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 9. └─jsonlite:::parse_and_simplify(...) 10. └─jsonlite:::parseJSON(txt, bigint_as_char) 11. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_search.r:619:5'): works with parameters that allow many inputs ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_search.r:617:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_search(recordedBy = c("smith", "BJ Stacey"), limit = 10) at test-occ_search.r:619:5 4. └─base::lapply(...) 5. └─rgbif (local) FUN(X[[i]], ...) 6. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 7. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 8. └─jsonlite:::parse_and_simplify(...) 9. └─jsonlite:::parseJSON(txt, bigint_as_char) 10. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_search.r:640:5'): key and gbifID fields are character class ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_search.r:639:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_search(taxonKey = 9206251, limit = 3) at test-occ_search.r:640:5 4. └─rgbif (local) .get_occ_search(curlopts = curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-occ_search.r:665:5'): geoDistance works as expected ──────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-occ_search.r:664:3 2. │ └─cassette$call_block(...) 3. └─rgbif::occ_search(geoDistance = "50.0,10.0,10km", limit = 2) at test-occ_search.r:665:5 4. └─rgbif (local) .get_occ_search(curlopts = curlopts) 5. └─rgbif:::gbif_GET(url, args, FALSE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-organizations.r:37:23'): correct country is returned ─────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-organizations.r:35:3 2. │ └─cassette$call_block(...) 3. └─rgbif::organizations(country = "BL") at test-organizations.r:37:23 4. └─rgbif:::getdata(data) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-organizations.r:52:23'): find GBIF Secretariat datasets ──────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-organizations.r:50:3 2. │ └─cassette$call_block(...) 3. └─rgbif::organizations(data = "hostedDataset", uuid = "fbca90e3-8aed-48b1-84e3-369afbd000ce") at test-organizations.r:52:23 4. └─rgbif:::getdata(data) 5. └─rgbif:::gbif_GET(url, args, TRUE, curlopts) 6. └─jsonlite::fromJSON(temp$parse("UTF-8"), parse) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) [ FAIL 70 | WARN 2 | SKIP 136 | PASS 394 ] Error: Test failures Execution halted Package: ritis Check: tests New result: ERROR Running ‘test-all.R’ [4s/4s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library("testthat") > test_check("ritis") Loading required package: ritis Attaching package: 'ritis' The following object is masked from 'package:stats': terms [ FAIL 32 | WARN 0 | SKIP 20 | PASS 35 ] ══ Skipped tests (20) ══════════════════════════════════════════════════════════ • On CRAN (20): 'test-accepted_names.R:3:1', 'test-any_match_count.R:34:3', 'test-comment_detail.R:3:1', 'test-common_names.R:3:1', 'test-core_metadata.R:3:1', 'test-coverage.R:3:1', 'test-credibility_rating.R:1:1', 'test-currency.R:3:1', 'test-date_data.R:3:1', 'test-description.R:3:1', 'test-experts.R:3:1', 'test-full_record.R:3:1', 'test-geographic_divisions.R:3:1', 'test-geographic_values.R:3:1', 'test-global_species_completeness.R:3:1', 'test-itis_group.R:14:3', 'test-itis_highlight.R:15:3', 'test-itis_search.R:20:3', 'test-terms.R:3:1', 'test-usage.R:3:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-any_match_count.R:10:3'): any_match_count basic functionality works ── `aa` is not strictly more than 0. Difference: 0 ── Failure ('test-any_match_count.R:12:3'): any_match_count basic functionality works ── `bb` is not strictly more than 0. Difference: 0 ── Failure ('test-any_match_count.R:21:3'): any_match_count - xml works ──────── grepl("xmlns", aa) is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-hierarchy.R:5:5'): hierarchy_down basic functionality works ──── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-hierarchy.R:4:3 2. │ └─cassette$call_block(...) 3. └─ritis::hierarchy_down(tsn = 179913) at test-hierarchy.R:5:5 4. ├─tibble::as_tibble(...) 5. ├─ritis:::pick_cols(...) 6. └─ritis:::parse_raw(out) 7. ├─tibble::as_tibble() 8. └─tibble:::as_tibble.NULL() 9. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 10. └─lifecycle:::deprecate_stop0(msg) 11. └─rlang::cnd_signal(...) ── Error ('test-hierarchy.R:17:5'): hierarchy_up basic functionality works ───── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-hierarchy.R:16:3 2. │ └─cassette$call_block(...) 3. └─ritis::hierarchy_up(tsn = 36485) at test-hierarchy.R:17:5 4. ├─ritis:::tc(...) 5. │ └─base::Filter(Negate(is.null), l) 6. │ ├─base::unlist(lapply(x, f)) 7. │ └─base::lapply(x, f) 8. ├─ritis:::pick_cols(...) 9. └─ritis:::parse_raw(out) 10. ├─tibble::as_tibble() 11. └─tibble:::as_tibble.NULL() 12. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 13. └─lifecycle:::deprecate_stop0(msg) 14. └─rlang::cnd_signal(...) ── Error ('test-hierarchy.R:29:5'): hierarchy_full basic functionality works ─── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-hierarchy.R:28:3 2. │ └─cassette$call_block(...) 3. └─ritis::hierarchy_full(tsn = 37906) at test-hierarchy.R:29:5 4. └─ritis:::parse_raw(out) 5. ├─tibble::as_tibble() 6. └─tibble:::as_tibble.NULL() 7. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 8. └─lifecycle:::deprecate_stop0(msg) 9. └─rlang::cnd_signal(...) ── Failure ('test-hierarchy.R:46:5'): hierarchy functions fail well ──────────── `hierarchy_down(tsn = "Asdfasdfa")` threw an error with unexpected message. Expected match: "Bad Request \\(HTTP 400\\)" Actual message: "The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0." Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-hierarchy.R:44:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-hierarchy.R:46:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─ritis::hierarchy_down(tsn = "Asdfasdfa") 9. ├─tibble::as_tibble(...) 10. ├─ritis:::pick_cols(...) 11. └─ritis:::parse_raw(out) 12. ├─tibble::as_tibble() 13. └─tibble:::as_tibble.NULL() 14. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 15. └─lifecycle:::deprecate_stop0(msg) 16. └─rlang::cnd_signal(...) ── Failure ('test-hierarchy.R:49:5'): hierarchy functions fail well ──────────── `hierarchy_up(tsn = "Asdfasdfa")` threw an error with unexpected message. Expected match: "Bad Request \\(HTTP 400\\)" Actual message: "The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0." Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-hierarchy.R:44:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-hierarchy.R:49:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─ritis::hierarchy_up(tsn = "Asdfasdfa") 9. ├─ritis:::tc(...) 10. │ └─base::Filter(Negate(is.null), l) 11. │ ├─base::unlist(lapply(x, f)) 12. │ └─base::lapply(x, f) 13. ├─ritis:::pick_cols(...) 14. └─ritis:::parse_raw(out) 15. ├─tibble::as_tibble() 16. └─tibble:::as_tibble.NULL() 17. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 18. └─lifecycle:::deprecate_stop0(msg) 19. └─rlang::cnd_signal(...) ── Failure ('test-hierarchy.R:52:5'): hierarchy functions fail well ──────────── `hierarchy_full(tsn = "Asdfasdfa")` threw an error with unexpected message. Expected match: "Bad Request \\(HTTP 400\\)" Actual message: "The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0." Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-hierarchy.R:44:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-hierarchy.R:52:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─ritis::hierarchy_full(tsn = "Asdfasdfa") 9. └─ritis:::parse_raw(out) 10. ├─tibble::as_tibble() 11. └─tibble:::as_tibble.NULL() 12. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 13. └─lifecycle:::deprecate_stop0(msg) 14. └─rlang::cnd_signal(...) ── Error ('test-itis_facet.R:5:5'): itis_facet basic functionality works ─────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-itis_facet.R:4:3 2. │ └─cassette$call_block(...) 3. ├─ritis:::sm(itis_facet(q = "rank:Species", rows = 0, facet.field = "kingdom")) at test-itis_facet.R:5:5 4. │ └─base::suppressMessages(x) at tests/testthat/helper-ritis.R:1:7 5. │ └─base::withCallingHandlers(...) 6. └─ritis::itis_facet(q = "rank:Species", rows = 0, facet.field = "kingdom") 7. └─conn_itis$facet(params = args, callopts = callopts) 8. └─solrium:::cont_parse(out, params$wt %||% body$wt %||% "json") 9. ├─base::structure(parse_it(x, wt), wt = wt) 10. └─solrium:::parse_it(x, wt) 11. └─jsonlite::fromJSON(x, simplifyDataFrame = FALSE, simplifyMatrix = FALSE) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-itis_group.R:5:5'): itis_group basic functionality works ─────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-itis_group.R:4:3 2. │ └─cassette$call_block(...) 3. ├─ritis:::sm(...) at test-itis_group.R:5:5 4. │ └─base::suppressMessages(x) at tests/testthat/helper-ritis.R:1:7 5. │ └─base::withCallingHandlers(...) 6. └─ritis::itis_group(...) 7. └─conn_itis$group(params = args, callopts = callopts) 8. └─solrium:::cont_parse(out, params$wt %||% body$wt %||% "json") 9. ├─base::structure(parse_it(x, wt), wt = wt) 10. └─solrium:::parse_it(x, wt) 11. └─jsonlite::fromJSON(x, simplifyDataFrame = FALSE, simplifyMatrix = FALSE) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-itis_highlight.R:5:5'): itis_highlight basic functionality works ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-itis_highlight.R:4:3 2. │ └─cassette$call_block(...) 3. ├─ritis:::sm(...) at test-itis_highlight.R:5:5 4. │ └─base::suppressMessages(x) at tests/testthat/helper-ritis.R:1:7 5. │ └─base::withCallingHandlers(...) 6. └─ritis::itis_highlight(q = "rank:Species", hl.fl = "rank", rows = 10) 7. └─conn_itis$highlight(params = args, callopts = callopts) 8. └─solrium:::cont_parse(out, params$wt %||% body$wt %||% "json") 9. ├─base::structure(parse_it(x, wt), wt = wt) 10. └─solrium:::parse_it(x, wt) 11. └─jsonlite::fromJSON(x, simplifyDataFrame = FALSE, simplifyMatrix = FALSE) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-itis_search.R:5:5'): itis_search basic functionality works ───── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-itis_search.R:4:3 2. │ └─cassette$call_block(...) 3. ├─ritis:::sm(itis_search(q = "tsn:182662")) at test-itis_search.R:5:5 4. │ └─base::suppressMessages(x) at tests/testthat/helper-ritis.R:1:7 5. │ └─base::withCallingHandlers(...) 6. └─ritis::itis_search(q = "tsn:182662") 7. └─conn_itis$search(params = args, minOptimizedRows = FALSE, callopts = callopts) 8. └─solrium:::cont_parse(out, params$wt %||% body$wt %||% "json") 9. ├─base::structure(parse_it(x, wt), wt = wt) 10. └─solrium:::parse_it(x, wt) 11. └─jsonlite::fromJSON(x, simplifyDataFrame = FALSE, simplifyMatrix = FALSE) 12. └─jsonlite:::parse_and_simplify(...) 13. └─jsonlite:::parseJSON(txt, bigint_as_char) 14. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-jurisdiction.R:5:5'): jurisdictional_origin basic functionality works ── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-jurisdiction.R:4:3 2. │ └─cassette$call_block(...) 3. └─ritis::jurisdictional_origin(tsn = 180543) at test-jurisdiction.R:5:5 4. └─ritis:::parse_raw(out) 5. ├─tibble::as_tibble() 6. └─tibble:::as_tibble.NULL() 7. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 8. └─lifecycle:::deprecate_stop0(msg) 9. └─rlang::cnd_signal(...) ── Error ('test-jurisdiction.R:17:5'): jurisdiction_origin_values - basic functionality works ── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-jurisdiction.R:16:3 2. │ └─cassette$call_block(...) 3. └─ritis::jurisdiction_origin_values() at test-jurisdiction.R:17:5 4. ├─tibble::as_tibble(...) 5. ├─ritis:::pick_cols(...) 6. └─ritis:::parse_raw(out) 7. ├─tibble::as_tibble() 8. └─tibble:::as_tibble.NULL() 9. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 10. └─lifecycle:::deprecate_stop0(msg) 11. └─rlang::cnd_signal(...) ── Error ('test-jurisdiction.R:28:5'): jurisdiction_values - basic functionality works ── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-jurisdiction.R:27:3 2. │ └─cassette$call_block(...) 3. └─ritis::jurisdiction_values() at test-jurisdiction.R:28:5 4. └─ritis:::parse_raw(out) 5. ├─tibble::as_tibble() 6. └─tibble:::as_tibble.NULL() 7. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 8. └─lifecycle:::deprecate_stop0(msg) 9. └─rlang::cnd_signal(...) ── Failure ('test-jurisdiction.R:45:5'): jurisdiction functions fail well ────── `jurisdictional_origin(tsn = "asdfasdf")` threw an error with unexpected message. Expected match: "Bad Request \\(HTTP 400\\)" Actual message: "The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0." Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-jurisdiction.R:43:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-jurisdiction.R:45:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─ritis::jurisdictional_origin(tsn = "asdfasdf") 9. └─ritis:::parse_raw(out) 10. ├─tibble::as_tibble() 11. └─tibble:::as_tibble.NULL() 12. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 13. └─lifecycle:::deprecate_stop0(msg) 14. └─rlang::cnd_signal(...) ── Error ('test-kingdoms.R:5:5'): kingdom_name basic functionality works ─────── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-kingdoms.R:4:3 2. │ └─cassette$call_block(...) 3. └─ritis::kingdom_name(202385) at test-kingdoms.R:5:5 4. ├─ritis:::tc(...) 5. │ └─base::Filter(Negate(is.null), l) 6. │ ├─base::unlist(lapply(x, f)) 7. │ └─base::lapply(x, f) 8. ├─ritis:::pick_cols(...) 9. └─ritis:::parse_raw(out) 10. ├─tibble::as_tibble() 11. └─tibble:::as_tibble.NULL() 12. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 13. └─lifecycle:::deprecate_stop0(msg) 14. └─rlang::cnd_signal(...) ── Error ('test-kingdoms.R:19:5'): kingdom_names basic functionality works ───── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-kingdoms.R:18:3 2. │ └─cassette$call_block(...) 3. └─ritis::kingdom_names() at test-kingdoms.R:19:5 4. ├─ritis:::pick_cols(...) 5. ├─tibble::as_tibble(parse_raw(out)$kingdomNames) 6. └─ritis:::parse_raw(out) 7. ├─tibble::as_tibble() 8. └─tibble:::as_tibble.NULL() 9. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 10. └─lifecycle:::deprecate_stop0(msg) 11. └─rlang::cnd_signal(...) ── Failure ('test-kingdoms.R:37:5'): kingdom functions fail well ─────────────── `kingdom_name(tsn = "Asdfasdfa")` threw an error with unexpected message. Expected match: "Bad Request \\(HTTP 400\\)" Actual message: "The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0." Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-kingdoms.R:35:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-kingdoms.R:37:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─ritis::kingdom_name(tsn = "Asdfasdfa") 9. ├─ritis:::tc(...) 10. │ └─base::Filter(Negate(is.null), l) 11. │ ├─base::unlist(lapply(x, f)) 12. │ └─base::lapply(x, f) 13. ├─ritis:::pick_cols(...) 14. └─ritis:::parse_raw(out) 15. ├─tibble::as_tibble() 16. └─tibble:::as_tibble.NULL() 17. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 18. └─lifecycle:::deprecate_stop0(msg) 19. └─rlang::cnd_signal(...) ── Error ('test-publications.R:5:5'): publications basic functionality works ─── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-publications.R:4:3 2. │ └─cassette$call_block(...) 3. └─ritis::publications(tsn = 70340) at test-publications.R:5:5 4. └─ritis:::parse_raw(out) 5. ├─tibble::as_tibble() 6. └─tibble:::as_tibble.NULL() 7. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 8. └─lifecycle:::deprecate_stop0(msg) 9. └─rlang::cnd_signal(...) ── Failure ('test-publications.R:21:3'): publications - xml works ────────────── `aa` does not match "xmlns". Actual value: "" Backtrace: ▆ 1. └─testthat::expect_match(aa, "xmlns") at test-publications.R:21:3 2. └─testthat:::expect_match_(...) ── Failure ('test-publications.R:39:5'): publications fails well ─────────────── `publications(tsn = "Asdfasdfa")` threw an error with unexpected message. Expected match: "Bad Request \\(HTTP 400\\)" Actual message: "The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0." Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-publications.R:37:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-publications.R:39:5 4. │ └─testthat:::quasi_capture(...) 5. │ ├─testthat (local) .capture(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 8. └─ritis::publications(tsn = "Asdfasdfa") 9. └─ritis:::parse_raw(out) 10. ├─tibble::as_tibble() 11. └─tibble:::as_tibble.NULL() 12. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 13. └─lifecycle:::deprecate_stop0(msg) 14. └─rlang::cnd_signal(...) ── Error ('test-record.R:5:5'): record basic functionality works ─────────────── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-record.R:4:3 2. │ └─cassette$call_block(...) 3. └─ritis::record(lsid = "urn:lsid:itis.gov:itis_tsn:180543") at test-record.R:5:5 4. ├─ritis:::tc(parse_raw(out)) 5. │ └─base::Filter(Negate(is.null), l) 6. │ ├─base::unlist(lapply(x, f)) 7. │ └─base::lapply(x, f) 8. └─ritis:::parse_raw(out) 9. ├─tibble::as_tibble() 10. └─tibble:::as_tibble.NULL() 11. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 12. └─lifecycle:::deprecate_stop0(msg) 13. └─rlang::cnd_signal(...) ── Failure ('test-record.R:21:3'): record - xml works ────────────────────────── `aa` does not match "xmlns". Actual value: "" Backtrace: ▆ 1. └─testthat::expect_match(aa, "xmlns") at test-record.R:21:3 2. └─testthat:::expect_match_(...) ── Error ('test-record.R:40:5'): record fail well ────────────────────────────── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-record.R:38:3 2. │ └─cassette$call_block(...) 3. └─ritis::record(lsid = "asdfasdf") at test-record.R:40:5 4. ├─ritis:::tc(parse_raw(out)) 5. │ └─base::Filter(Negate(is.null), l) 6. │ ├─base::unlist(lapply(x, f)) 7. │ └─base::lapply(x, f) 8. └─ritis:::parse_raw(out) 9. ├─tibble::as_tibble() 10. └─tibble:::as_tibble.NULL() 11. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 12. └─lifecycle:::deprecate_stop0(msg) 13. └─rlang::cnd_signal(...) ── Error ('test-search_common.R:5:5'): search_common basic functionality works ── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-search_common.R:4:3 2. │ └─cassette$call_block(...) 3. └─ritis::search_common(x = "american bullfrog") at test-search_common.R:5:5 4. ├─tibble::as_tibble(dr_op(parse_raw(out)$commonNames, "class")) 5. ├─ritis:::dr_op(parse_raw(out)$commonNames, "class") 6. └─ritis:::parse_raw(out) 7. ├─tibble::as_tibble() 8. └─tibble:::as_tibble.NULL() 9. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 10. └─lifecycle:::deprecate_stop0(msg) 11. └─rlang::cnd_signal(...) ── Failure ('test-search_common.R:21:3'): search_common - xml works ──────────── grepl("xmlns", aa) is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-search_common.R:39:5'): search_common fails well ─────────────── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-search_common.R:37:3 2. │ └─cassette$call_block(...) 3. └─ritis::search_common(x = "asdfadf") at test-search_common.R:39:5 4. ├─tibble::as_tibble(dr_op(parse_raw(out)$commonNames, "class")) 5. ├─ritis:::dr_op(parse_raw(out)$commonNames, "class") 6. └─ritis:::parse_raw(out) 7. ├─tibble::as_tibble() 8. └─tibble:::as_tibble.NULL() 9. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 10. └─lifecycle:::deprecate_stop0(msg) 11. └─rlang::cnd_signal(...) ── Error ('test-search_scientific.R:5:5'): search_scientific basic functionality works ── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-search_scientific.R:4:3 2. │ └─cassette$call_block(...) 3. └─ritis::search_scientific("Tardigrada") at test-search_scientific.R:5:5 4. ├─tibble::as_tibble(dr_op(parse_raw(out)$scientificNames, "class")) 5. ├─ritis:::dr_op(parse_raw(out)$scientificNames, "class") 6. └─ritis:::parse_raw(out) 7. ├─tibble::as_tibble() 8. └─tibble:::as_tibble.NULL() 9. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 10. └─lifecycle:::deprecate_stop0(msg) 11. └─rlang::cnd_signal(...) ── Failure ('test-search_scientific.R:20:5'): search_scientific - xml works ──── grepl("xmlns", aa) is not TRUE `actual`: FALSE `expected`: TRUE Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-search_scientific.R:16:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_true(grepl("xmlns", aa)) at test-search_scientific.R:20:5 ── Error ('test-search_scientific.R:39:5'): search_scientific fails well ─────── Error: The `x` argument of `as_tibble()` can't be missing as of tibble 3.0.0. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-search_scientific.R:37:3 2. │ └─cassette$call_block(...) 3. └─ritis::search_scientific(x = "asdfadf", wt = "json") at test-search_scientific.R:39:5 4. ├─tibble::as_tibble(dr_op(parse_raw(out)$scientificNames, "class")) 5. ├─ritis:::dr_op(parse_raw(out)$scientificNames, "class") 6. └─ritis:::parse_raw(out) 7. ├─tibble::as_tibble() 8. └─tibble:::as_tibble.NULL() 9. └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')") 10. └─lifecycle:::deprecate_stop0(msg) 11. └─rlang::cnd_signal(...) [ FAIL 32 | WARN 0 | SKIP 20 | PASS 35 ] Error: Test failures Execution halted Package: vcr Check: tests New result: ERROR Running ‘test-all.R’ [5s/9s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library("testthat") > library('vcr') > test_check("vcr") using base url for tests: https://hb.cran.dev [ FAIL 1 | WARN 11 | SKIP 50 | PASS 501 ] ══ Skipped tests (50) ══════════════════════════════════════════════════════════ • Did not find: '../../man/vcr_configure.Rd' (1): 'test-configuration.R:53:3' • On CRAN (49): 'test-RequestHandler.R:1:1', 'test-RequestIgnorer.R:41:3', 'test-RequestIgnorer.R:83:3', 'test-ause_cassette.R:6:3', 'test-ause_cassette_match_body_empty_body.R:2:3', 'test-ause_cassette_match_query.R:11:3', 'test-ause_cassette_match_requests_on.R:2:3', 'test-ause_cassette_match_requests_on.R:129:3', 'test-ause_cassette_match_requests_on_json.R:6:3', 'test-ause_cassette_match_requests_on_json.R:63:3', 'test-ause_cassette_re_record.R:15:3', 'test-ause_cassette_record_modes.R:13:3', 'test-ause_cassette_record_modes.R:54:3', 'test-ause_cassette_record_modes.R:80:3', 'test-ause_cassette_record_modes.R:126:3', 'test-ause_cassette_write_to_disk.R:8:3', 'test-ause_cassette_write_to_disk.R:39:3', 'test-ause_cassette_write_to_disk.R:67:3', 'test-ause_cassette_write_to_disk_binary_files.R:7:3', 'test-ause_cassette_write_to_disk_binary_files.R:42:3', 'test-ause_cassette_write_to_disk_binary_files.R:104:3', 'test-binary_images.R:7:3', 'test-binary_images.R:57:3', 'test-check_cassette_names.R:2:3', 'test-crul.R:1:1', 'test-filter-sensitive-strings.R:1:1', 'test-filter_headers.R:4:3', 'test-filter_headers.R:61:3', 'test-filter_headers.R:106:3', 'test-filter_headers.R:138:3', 'test-filter_headers.R:185:3', 'test-filter_headers.R:233:3', 'test-filter_query_parameters.R:10:3', 'test-filter_query_parameters.R:57:3', 'test-filter_query_parameters.R:104:3', 'test-filter_query_parameters.R:154:3', 'test-filter_query_parameters.R:199:3', 'test-httr.R:1:1', 'test-httr2.R:1:1', 'test-request_summary.R:10:3', 'test-response_summary.R:13:3', 'test-response_summary.R:29:3', 'test-response_summary.R:47:3', 'test-serializers_json.R:22:3', 'test-use_vcr.R:4:3', 'test-vcr_test_path.R:2:3', 'test-vcr_test_path.R:24:3', 'test-vcr_test_path.R:46:3', 'test-write_disk_path_package_context.R:4:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-localhost_port.R:25:3'): testing against localhost port works ── Error in `readLines(con, warn = readLines.warn)`: cannot open the connection Backtrace: ▆ 1. └─yaml::yaml.load_file(path) at test-localhost_port.R:25:3 2. ├─yaml::yaml.load(...) 3. │ └─base::paste(string, collapse = "\n") 4. └─base::readLines(con, warn = readLines.warn) [ FAIL 1 | WARN 11 | SKIP 50 | PASS 501 ] Error: Test failures Execution halted Package: wikitaxa Check: tests New result: ERROR Running ‘test-all.R’ [2s/2s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library(testthat) > library(wikitaxa) > test_check("wikitaxa") [ FAIL 6 | WARN 0 | SKIP 23 | PASS 1 ] ══ Skipped tests (23) ══════════════════════════════════════════════════════════ • On CRAN (23): 'test-wikicommons.R:4:3', 'test-wikicommons.R:37:3', 'test-wikicommons.R:66:3', 'test-wikicommons.R:85:3', 'test-wikicommons.R:109:3', 'test-wikipedia.R:4:3', 'test-wikipedia.R:37:3', 'test-wikipedia.R:66:3', 'test-wikipedia.R:87:3', 'test-wikipedia.R:112:3', 'test-wikispecies.R:4:3', 'test-wikispecies.R:38:3', 'test-wikispecies.R:61:3', 'test-wikispecies.R:82:3', 'test-wikispecies.R:106:3', 'test-wt_data.R:4:3', 'test-wt_wiki_page.R:4:3', 'test-wt_wiki_page.R:15:3', 'test-wt_wiki_page.R:32:3', 'test-wt_wiki_url_build.R:4:3', 'test-wt_wiki_url_build.R:12:3', 'test-wt_wiki_url_parse.R:4:3', 'test-wt_wiki_url_parse.R:15:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-wikicommons.R:22:5'): wt_wikicommons returns non-empty results ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wikicommons.R:21:3 2. │ └─cassette$call_block(...) 3. └─wikitaxa::wt_wikicommons(name = "Poa annua") at test-wikicommons.R:22:5 4. └─wikitaxa::wt_wikicommons_parse(pg, prop, tidy = TRUE) 5. └─wikitaxa::wt_wiki_page_parse(page, types = types, tidy = tidy) 6. └─jsonlite::fromJSON(rawToChar(page$content), tidy) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wikicommons.R:102:5'): wt_wikicommons_search_not_found ───────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wikicommons.R:101:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_equal(...) at test-wikicommons.R:102:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. ├─base::NROW(wt_wikicommons_search("asdfadfaadfadfs", utf8 = FALSE)$query$search) 7. └─wikitaxa::wt_wikicommons_search("asdfadfaadfadfs", utf8 = FALSE) 8. └─wikitaxa:::g_et(...) 9. └─jsonlite::fromJSON(res$parse("UTF-8")) 10. └─jsonlite:::parse_and_simplify(...) 11. └─jsonlite:::parseJSON(txt, bigint_as_char) 12. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wikipedia.R:23:5'): wt_wikipedia returns non-empty results ───── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wikipedia.R:22:3 2. │ └─cassette$call_block(...) 3. └─wikitaxa::wt_wikipedia(name = "Poa annua") at test-wikipedia.R:23:5 4. └─wikitaxa::wt_wikipedia_parse(page = pg, types = prop, tidy = TRUE) 5. └─wikitaxa::wt_wiki_page_parse(page, types = types, tidy = tidy) 6. └─jsonlite::fromJSON(rawToChar(page$content), tidy) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wikipedia.R:106:5'): wt_wikipedia_search_not_found ───────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wikipedia.R:105:3 2. │ └─cassette$call_block(...) 3. └─wikitaxa::wt_wikipedia_search("asdfadfaadfadfs", utf8 = FALSE) at test-wikipedia.R:106:5 4. └─wikitaxa:::g_et(...) 5. └─jsonlite::fromJSON(res$parse("UTF-8")) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wikispecies.R:23:5'): wt_wikispecies returns non-empty results ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wikispecies.R:22:3 2. │ └─cassette$call_block(...) 3. └─wikitaxa::wt_wikispecies(name = "Poa annua") at test-wikispecies.R:23:5 4. └─wikitaxa::wt_wikispecies_parse(pg, prop, tidy = TRUE) 5. └─wikitaxa::wt_wiki_page_parse(page, types = types, tidy = tidy) 6. └─jsonlite::fromJSON(rawToChar(page$content), tidy) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wikispecies.R:100:5'): wt_wikispecies_search_not_found ───────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wikispecies.R:99:3 2. │ └─cassette$call_block(...) 3. └─wikitaxa::wt_wikispecies_search("asdfadfaadfadfs", utf8 = FALSE) at test-wikispecies.R:100:5 4. └─wikitaxa:::g_et(...) 5. └─jsonlite::fromJSON(res$parse("UTF-8")) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) [ FAIL 6 | WARN 0 | SKIP 23 | PASS 1 ] Error: Test failures Execution halted Package: worrms Check: tests New result: ERROR Running ‘test-all.R’ [7s/7s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library("testthat") > test_check("worrms") Loading required package: worrms [ FAIL 37 | WARN 2 | SKIP 34 | PASS 2 ] ══ Skipped tests (34) ══════════════════════════════════════════════════════════ • On CRAN (34): 'test-wm_children.R:40:3', 'test-wm_children.R:86:3', 'test-wm_classification.R:14:3', 'test-wm_classification.R:43:3', 'test-wm_common_id.R:14:3', 'test-wm_common_id.R:45:3', 'test-wm_distribution.R:13:3', 'test-wm_distribution.R:41:3', 'test-wm_external.R:22:3', 'test-wm_external.R:51:3', 'test-wm_id2name.R:13:3', 'test-wm_id2name.R:42:3', 'test-wm_name2id.R:13:3', 'test-wm_name2id.R:40:3', 'test-wm_ranks.R:13:3', 'test-wm_ranks.R:37:3', 'test-wm_record.R:13:3', 'test-wm_record.R:36:3', 'test-wm_record_by_external.R:33:3', 'test-wm_record_by_external.R:60:3', 'test-wm_records_common.R:41:3', 'test-wm_records_common.R:66:3', 'test-wm_records_date.R:4:3', 'test-wm_records_date.R:16:3', 'test-wm_records_name.R:27:3', 'test-wm_records_names.R:16:3', 'test-wm_records_names.R:24:3', 'test-wm_records_rank.R:12:3', 'test-wm_records_taxamatch.R:16:3', 'test-wm_records_taxamatch.R:27:3', 'test-wm_sources.R:17:3', 'test-wm_sources.R:38:3', 'test-wm_synonyms.R:19:3', 'test-wm_synonyms.R:41:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-wm_children.R:5:5'): wm_children basic usage works ───────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_children.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_children(id = 105706) at test-wm_children.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_children.R:21:5'): wm_children - marine_only usage works ──── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_children.R:20:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_is(wm_children(id = 105706, FALSE), "tbl_df") at test-wm_children.R:21:5 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─worrms::wm_children(id = 105706, FALSE) 7. └─worrms:::wm_GET(...) 8. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 9. └─jsonlite:::parse_and_simplify(...) 10. └─jsonlite:::parseJSON(txt, bigint_as_char) 11. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_children.R:30:5'): wm_children - offset parameter works ───── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_children.R:29:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_children(id = 105706, offset = 1) at test-wm_children.R:30:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_children.R:57:5'): wm_children_ basic usage works ─────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_children.R:56:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_children_(id = 105706) at test-wm_children.R:57:5 4. └─worrms:::run_bind(...) 5. ├─tibble::as_tibble(...) 6. ├─worrms:::br(ccn(stats::setNames(lapply(id, fun, ...), id))) 7. │ ├─data.table::setDF(...) 8. │ └─data.table::rbindlist(x, use.names = TRUE, fill = TRUE, idcol = "id") 9. ├─worrms:::ccn(stats::setNames(lapply(id, fun, ...), id)) 10. │ └─base::Filter(function(z) !is.null(z) && NROW(z) > 0, x) 11. │ ├─base::unlist(lapply(x, f)) 12. │ └─base::lapply(x, f) 13. ├─stats::setNames(lapply(id, fun, ...), id) 14. └─base::lapply(id, fun, ...) 15. └─worrms (local) FUN(X[[i]], ...) 16. └─worrms:::wm_GET(...) 17. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 18. └─jsonlite:::parse_and_simplify(...) 19. └─jsonlite:::parseJSON(txt, bigint_as_char) 20. └─jsonlite:::parse_string(txt, bigint_as_char) ── Failure ('test-wm_children.R:82:3'): wm_children_ - 'name' input works ────── any(grepl("Leucophaeus", aa$scientificname)) is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-wm_classification.R:5:5'): wm_classification works ───────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_classification.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_classification(id = 105706) at test-wm_classification.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_classification.R:27:5'): wm_classification_ works ─────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_classification.R:26:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_classification_(id = 105706) at test-wm_classification.R:27:5 4. └─worrms:::run_bind(...) 5. ├─tibble::as_tibble(...) 6. ├─worrms:::br(ccn(stats::setNames(lapply(id, fun, ...), id))) 7. │ ├─data.table::setDF(...) 8. │ └─data.table::rbindlist(x, use.names = TRUE, fill = TRUE, idcol = "id") 9. ├─worrms:::ccn(stats::setNames(lapply(id, fun, ...), id)) 10. │ └─base::Filter(function(z) !is.null(z) && NROW(z) > 0, x) 11. │ ├─base::unlist(lapply(x, f)) 12. │ └─base::lapply(x, f) 13. ├─stats::setNames(lapply(id, fun, ...), id) 14. └─base::lapply(id, fun, ...) 15. └─worrms (local) FUN(X[[i]], ...) 16. └─worrms:::wm_GET(...) 17. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 18. └─jsonlite:::parse_and_simplify(...) 19. └─jsonlite:::parseJSON(txt, bigint_as_char) 20. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_common_id.R:5:5'): wm_common_id basic usage works ─────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_common_id.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_common_id(id = 156806) at test-wm_common_id.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_common_id.R:27:5'): wm_common_id_ basic usage works ───────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_common_id.R:26:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_common_id_(id = 156806) at test-wm_common_id.R:27:5 4. └─worrms:::run_bind(id, wm_common_id, on_error = warning, ...) 5. ├─tibble::as_tibble(...) 6. ├─worrms:::br(ccn(stats::setNames(lapply(id, fun, ...), id))) 7. │ ├─data.table::setDF(...) 8. │ └─data.table::rbindlist(x, use.names = TRUE, fill = TRUE, idcol = "id") 9. ├─worrms:::ccn(stats::setNames(lapply(id, fun, ...), id)) 10. │ └─base::Filter(function(z) !is.null(z) && NROW(z) > 0, x) 11. │ ├─base::unlist(lapply(x, f)) 12. │ └─base::lapply(x, f) 13. ├─stats::setNames(lapply(id, fun, ...), id) 14. └─base::lapply(id, fun, ...) 15. └─worrms (local) FUN(X[[i]], ...) 16. └─worrms:::wm_GET(...) 17. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 18. └─jsonlite:::parse_and_simplify(...) 19. └─jsonlite:::parseJSON(txt, bigint_as_char) 20. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_distribution.R:5:5'): wm_distribution basic usage works ───── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_distribution.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_distribution(id = 156806) at test-wm_distribution.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_distribution.R:26:5'): wm_distribution_ basic usage works ─── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_distribution.R:25:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_distribution_(id = 156806) at test-wm_distribution.R:26:5 4. └─worrms:::run_bind(id, wm_distribution, on_error = warning, ...) 5. ├─tibble::as_tibble(...) 6. ├─worrms:::br(ccn(stats::setNames(lapply(id, fun, ...), id))) 7. │ ├─data.table::setDF(...) 8. │ └─data.table::rbindlist(x, use.names = TRUE, fill = TRUE, idcol = "id") 9. ├─worrms:::ccn(stats::setNames(lapply(id, fun, ...), id)) 10. │ └─base::Filter(function(z) !is.null(z) && NROW(z) > 0, x) 11. │ ├─base::unlist(lapply(x, f)) 12. │ └─base::lapply(x, f) 13. ├─stats::setNames(lapply(id, fun, ...), id) 14. └─base::lapply(id, fun, ...) 15. └─worrms (local) FUN(X[[i]], ...) 16. └─worrms:::wm_GET(...) 17. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 18. └─jsonlite:::parse_and_simplify(...) 19. └─jsonlite:::parseJSON(txt, bigint_as_char) 20. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_external.R:5:5'): wm_external - default usage works ───────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_external.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_external(id = 1080) at test-wm_external.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_external.R:14:5'): wm_external - type: fishbase ───────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_external.R:13:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_external(id = 278468, type = "fishbase") at test-wm_external.R:14:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_external.R:37:5'): wm_external_ - default usage works ─────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_external.R:36:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_external_(id = 1080) at test-wm_external.R:37:5 4. └─worrms:::run_c(...) 5. ├─worrms:::ccn(stats::setNames(lapply(id, fun, ...), id)) 6. │ └─base::Filter(function(z) !is.null(z) && NROW(z) > 0, x) 7. │ ├─base::unlist(lapply(x, f)) 8. │ └─base::lapply(x, f) 9. ├─stats::setNames(lapply(id, fun, ...), id) 10. └─base::lapply(id, fun, ...) 11. └─worrms (local) FUN(X[[i]], ...) 12. └─worrms:::wm_GET(...) 13. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 14. └─jsonlite:::parse_and_simplify(...) 15. └─jsonlite:::parseJSON(txt, bigint_as_char) 16. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_id2name.R:5:5'): wm_id2name - default usage works ─────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_id2name.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_id2name(id = 1080) at test-wm_id2name.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_id2name.R:27:5'): wm_id2name_ - default usage works ───────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_id2name.R:26:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_id2name_(id = 1080) at test-wm_id2name.R:27:5 4. └─worrms:::run_c(id, wm_id2name, on_error = warning, ...) 5. ├─worrms:::ccn(stats::setNames(lapply(id, fun, ...), id)) 6. │ └─base::Filter(function(z) !is.null(z) && NROW(z) > 0, x) 7. │ ├─base::unlist(lapply(x, f)) 8. │ └─base::lapply(x, f) 9. ├─stats::setNames(lapply(id, fun, ...), id) 10. └─base::lapply(id, fun, ...) 11. └─worrms (local) FUN(X[[i]], ...) 12. └─worrms:::wm_GET(...) 13. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 14. └─jsonlite:::parse_and_simplify(...) 15. └─jsonlite:::parseJSON(txt, bigint_as_char) 16. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_name2id.R:5:5'): wm_name2id - default usage works ─────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_name2id.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_name2id(name = "Rhincodon") at test-wm_name2id.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_name2id.R:26:5'): wm_name2id_ - default usage works ───────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_name2id.R:25:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_name2id_(name = "Rhincodon") at test-wm_name2id.R:26:5 4. └─worrms:::run_c(name, wm_name2id, on_error = warning, ...) 5. ├─worrms:::ccn(stats::setNames(lapply(id, fun, ...), id)) 6. │ └─base::Filter(function(z) !is.null(z) && NROW(z) > 0, x) 7. │ ├─base::unlist(lapply(x, f)) 8. │ └─base::lapply(x, f) 9. ├─stats::setNames(lapply(id, fun, ...), id) 10. └─base::lapply(id, fun, ...) 11. └─worrms (local) FUN(X[[i]], ...) 12. └─worrms:::wm_GET(...) 13. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 14. └─jsonlite:::parse_and_simplify(...) 15. └─jsonlite:::parseJSON(txt, bigint_as_char) 16. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_ranks.R:4:5'): wm_ranks_id - default usage works ──────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_ranks.R:3:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_ranks_id(220) at test-wm_ranks.R:4:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_ranks.R:28:5'): wm_ranks_name - default usage works ───────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_ranks.R:27:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_ranks_name("genus") at test-wm_ranks.R:28:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_record.R:4:5'): wm_record - default usage works ───────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_record.R:3:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_record(id = 105706) at test-wm_record.R:4:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_record.R:27:5'): wm_record - default usage works ──────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_record.R:26:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_record(id = c(105706, 126436)) at test-wm_record.R:27:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_record_by_external.R:6:5'): wm_record_by_external - default - by id type tsn ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_record_by_external.R:5:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_record_by_external(id = 85257) at test-wm_record_by_external.R:6:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_record_by_external.R:46:5'): wm_record_by_external_ - default - by id type tsn ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_record_by_external.R:45:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_record_by_external_(id = 85257) at test-wm_record_by_external.R:46:5 4. └─worrms:::run_c(...) 5. ├─worrms:::ccn(stats::setNames(lapply(id, fun, ...), id)) 6. │ └─base::Filter(function(z) !is.null(z) && NROW(z) > 0, x) 7. │ ├─base::unlist(lapply(x, f)) 8. │ └─base::lapply(x, f) 9. ├─stats::setNames(lapply(id, fun, ...), id) 10. └─base::lapply(id, fun, ...) 11. └─worrms (local) FUN(X[[i]], ...) 12. └─worrms:::wm_GET(...) 13. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 14. └─jsonlite:::parse_and_simplify(...) 15. └─jsonlite:::parseJSON(txt, bigint_as_char) 16. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_records_common.R:5:5'): wm_records_common - works ─────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_records_common.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_records_common(name = "dolphin") at test-wm_records_common.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_records_common.R:17:5'): wm_records_common - fuzzy parameter works ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_records_common.R:16:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_records_common(name = "dolphin") at test-wm_records_common.R:17:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_records_common.R:33:5'): wm_records_common - offset parameter works ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_records_common.R:32:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_records_common(name = "dolphin", fuzzy = TRUE) at test-wm_records_common.R:33:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_records_common.R:56:5'): wm_records_common_ - works ───────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_records_common.R:55:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_records_common_(name = c("dolphin", "clam")) at test-wm_records_common.R:56:5 4. └─worrms:::run_bind(...) 5. ├─tibble::as_tibble(...) 6. ├─worrms:::br(ccn(stats::setNames(lapply(id, fun, ...), id))) 7. │ ├─data.table::setDF(...) 8. │ └─data.table::rbindlist(x, use.names = TRUE, fill = TRUE, idcol = "id") 9. ├─worrms:::ccn(stats::setNames(lapply(id, fun, ...), id)) 10. │ └─base::Filter(function(z) !is.null(z) && NROW(z) > 0, x) 11. │ ├─base::unlist(lapply(x, f)) 12. │ └─base::lapply(x, f) 13. ├─stats::setNames(lapply(id, fun, ...), id) 14. └─base::lapply(id, fun, ...) 15. └─worrms (local) FUN(X[[i]], ...) 16. └─worrms:::wm_GET(...) 17. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 18. └─jsonlite:::parse_and_simplify(...) 19. └─jsonlite:::parseJSON(txt, bigint_as_char) 20. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_records_name.R:5:5'): wm_records_name - fuzzy TRUE ────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_records_name.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_records_name(name = "Coryphaena im") at test-wm_records_name.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_records_name.R:17:5'): wm_records_name - fuzzy FALSE ──────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_records_name.R:16:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_records_name(name = "Coryphaena imperialis", fuzzy = FALSE) at test-wm_records_name.R:17:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_records_names.R:5:5'): wm_records_names ───────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_records_names.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_records_names(name = "Coryphaena immaculata") at test-wm_records_names.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_records_rank.R:4:5'): wm_records_rank - default usage works ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_records_rank.R:3:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_records_rank(rank_id = 180, id = 106776) at test-wm_records_rank.R:4:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_records_taxamatch.R:5:5'): wm_records_taxamatch basic usage works ── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_records_taxamatch.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_records_taxamatch(name = "Coryphaena immaculata") at test-wm_records_taxamatch.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_sources.R:5:5'): wm_sources - works ───────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_sources.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_sources(id = 105706) at test-wm_sources.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_sources.R:29:5'): wm_sources_ - works ─────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_sources.R:28:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_sources_(id = c(105706, 126436)) at test-wm_sources.R:29:5 4. └─worrms:::run_bind(id, wm_sources, on_error = warning, ...) 5. ├─tibble::as_tibble(...) 6. ├─worrms:::br(ccn(stats::setNames(lapply(id, fun, ...), id))) 7. │ ├─data.table::setDF(...) 8. │ └─data.table::rbindlist(x, use.names = TRUE, fill = TRUE, idcol = "id") 9. ├─worrms:::ccn(stats::setNames(lapply(id, fun, ...), id)) 10. │ └─base::Filter(function(z) !is.null(z) && NROW(z) > 0, x) 11. │ ├─base::unlist(lapply(x, f)) 12. │ └─base::lapply(x, f) 13. ├─stats::setNames(lapply(id, fun, ...), id) 14. └─base::lapply(id, fun, ...) 15. └─worrms (local) FUN(X[[i]], ...) 16. └─worrms:::wm_GET(...) 17. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 18. └─jsonlite:::parse_and_simplify(...) 19. └─jsonlite:::parseJSON(txt, bigint_as_char) 20. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_synonyms.R:5:5'): wm_synonyms - works ─────────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_synonyms.R:4:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_synonyms(id = 105706) at test-wm_synonyms.R:5:5 4. └─worrms:::wm_GET(...) 5. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 6. └─jsonlite:::parse_and_simplify(...) 7. └─jsonlite:::parseJSON(txt, bigint_as_char) 8. └─jsonlite:::parse_string(txt, bigint_as_char) ── Error ('test-wm_synonyms.R:31:5'): wm_synonyms_ - works ───────────────────── Error: parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-wm_synonyms.R:30:3 2. │ └─cassette$call_block(...) 3. └─worrms::wm_synonyms_(id = c(105706, 126436)) at test-wm_synonyms.R:31:5 4. └─worrms:::run_bind(id, wm_synonyms, on_error = warning, ...) 5. ├─tibble::as_tibble(...) 6. ├─worrms:::br(ccn(stats::setNames(lapply(id, fun, ...), id))) 7. │ ├─data.table::setDF(...) 8. │ └─data.table::rbindlist(x, use.names = TRUE, fill = TRUE, idcol = "id") 9. ├─worrms:::ccn(stats::setNames(lapply(id, fun, ...), id)) 10. │ └─base::Filter(function(z) !is.null(z) && NROW(z) > 0, x) 11. │ ├─base::unlist(lapply(x, f)) 12. │ └─base::lapply(x, f) 13. ├─stats::setNames(lapply(id, fun, ...), id) 14. └─base::lapply(id, fun, ...) 15. └─worrms (local) FUN(X[[i]], ...) 16. └─worrms:::wm_GET(...) 17. └─jsonlite::fromJSON(temp$parse("UTF-8"), flatten = TRUE) 18. └─jsonlite:::parse_and_simplify(...) 19. └─jsonlite:::parseJSON(txt, bigint_as_char) 20. └─jsonlite:::parse_string(txt, bigint_as_char) [ FAIL 37 | WARN 2 | SKIP 34 | PASS 2 ] Error: Test failures Execution halted