Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(robis)
  > 
  > test_check("robis")
  -- 1. Error: area api returns records (@test_area.R#5)  ------------------------
  Internal Server Error (HTTP 500).
  1: area() at testthat/test_area.R:5
  2: simple_paged("area", verbose)
  3: stop_for_status(result)
  
  <request>
  POST http://api.iobis.org/taxa
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * post: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Fields:
  * scientificname: Abra
  * offset: 0
  Status: 500
  Age: 0
  Time: 0.078 
  -- 2. Error: checklist returns multiple records for a genus (@test_checklist.R#7
  Internal Server Error (HTTP 500).
  1: checklist(scientificname = test_genus, verbose = TRUE) at testthat/test_checklist.R:7
  2: stop_for_status(result)
  
  <request>
  POST http://api.iobis.org/taxa
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * post: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Fields:
  * year: 1802
  * offset: 0
  Status: 500
  Age: 0
  Time: 0.063 
  -- 3. Error: checklist returns multiple records for a year (@test_checklist.R#15
  Internal Server Error (HTTP 500).
  1: checklist(year = 1802, verbose = TRUE) at testthat/test_checklist.R:15
  2: stop_for_status(result)
  
  -- 4. Error: checklist returns multiple records for a group (@test_checklist.R#2
  Internal Server Error (HTTP 500).
  1: group() at testthat/test_checklist.R:25
  2: simple_paged("group", verbose)
  3: stop_for_status(result)
  
  -- 5. Error: checklist qc flags work (@test_checklist.R#35)  -------------------
  Internal Server Error (HTTP 500).
  1: checklist(year = 1802, qc = 15:30) at testthat/test_checklist.R:35
  2: stop_for_status(result)
  
  -- 6. Error: checklist allow multiple scientific names https://github.com/iobis/
  Internal Server Error (HTTP 500).
  1: checklist(scientificname = c("Pterois volitans", "Voluta musica")) at testthat/test_checklist.R:42
  2: stop_for_status(result)
  
  -- 7. Error: checklist returns requested fields https://github.com/iobis/robis/i
  Internal Server Error (HTTP 500).
  1: checklist(scientificname = "Pterois volitans", fields = fields) at testthat/test_checklist.R:48
  2: stop_for_status(result)
  
  -- 8. Error: checklist returns requested fields even when missing https://github
  Internal Server Error (HTTP 500).
  1: expect_warning({
         taxa <- checklist(scientificname = "Pterois volitans", fields = fields)
     }) at testthat/test_checklist.R:55
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: checklist(scientificname = "Pterois volitans", fields = fields) at testthat/test_checklist.R:56
  7: stop_for_status(result)
  
  <request>
  GET http://api.iobis.org/resource/2500
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152987
  Time: 0.031 
  
  Retrieved 1 records of 21 (4%)<request>
  GET http://api.iobis.org/resource/2501
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152987
  Time: 0.015 
  
  Retrieved 2 records of 21 (9%)<request>
  GET http://api.iobis.org/resource/2502
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152987
  Time: 0.016 
  
  Retrieved 3 records of 21 (14%)<request>
  GET http://api.iobis.org/resource/2503
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152987
  Time: 0.016 
  
  Retrieved 4 records of 21 (19%)<request>
  GET http://api.iobis.org/resource/2504
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152987
  Time: 0.016 
  
  Retrieved 5 records of 21 (23%)<request>
  GET http://api.iobis.org/resource/2505
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152986
  Time: 0.015 
  
  Retrieved 6 records of 21 (28%)<request>
  GET http://api.iobis.org/resource/2506
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152986
  Time: 0.031 
  
  Retrieved 7 records of 21 (33%)<request>
  GET http://api.iobis.org/resource/2507
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152986
  Time: 0.032 
  
  Retrieved 8 records of 21 (38%)<request>
  GET http://api.iobis.org/resource/2508
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152986
  Time: 0.015 
  
  Retrieved 9 records of 21 (42%)<request>
  GET http://api.iobis.org/resource/2509
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152986
  Time: 0.015 
  
  Retrieved 10 records of 21 (47%)<request>
  GET http://api.iobis.org/resource/2510
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152986
  Time: 0.016 
  
  Retrieved 11 records of 21 (52%)<request>
  GET http://api.iobis.org/resource/2511
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152985
  Time: 0.016 
  
  Retrieved 12 records of 21 (57%)<request>
  GET http://api.iobis.org/resource/2512
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152985
  Time: 0.016 
  
  Retrieved 13 records of 21 (61%)<request>
  GET http://api.iobis.org/resource/2513
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152985
  Time: 0.031 
  
  Retrieved 14 records of 21 (66%)<request>
  GET http://api.iobis.org/resource/2514
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152985
  Time: 0.031 
  
  Retrieved 15 records of 21 (71%)<request>
  GET http://api.iobis.org/resource/2515
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152985
  Time: 0.016 
  
  Retrieved 16 records of 21 (76%)<request>
  GET http://api.iobis.org/resource/2516
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152985
  Time: 0.015 
  
  Retrieved 17 records of 21 (80%)<request>
  GET http://api.iobis.org/resource/2517
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152984
  Time: 0.015 
  
  Retrieved 18 records of 21 (85%)<request>
  GET http://api.iobis.org/resource/2518
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152984
  Time: 0.016 
  
  Retrieved 19 records of 21 (90%)<request>
  GET http://api.iobis.org/resource/2519
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152984
  Time: 0.031 
  
  Retrieved 20 records of 21 (95%)<request>
  GET http://api.iobis.org/resource/2520
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152984
  Time: 0.031 
  
  Retrieved 21 records of 21 (100%)
  -- 9. Error: datasets query parameter can be used (@test_dataset.R#14)  --------
  Internal Server Error (HTTP 500).
  1: dataset(q = "MICROBIS") at testthat/test_dataset.R:14
  2: simple_paged("resource", verbose, query = query, resultsfn = extract_dataset)
  3: stop_for_status(result)
  
  <request>
  POST http://api.iobis.org/group
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * post: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Fields:
  * offset: 0
  Status: 500
  Age: 0
  Time: 0.047 
  -- 10. Error: group api returns records (@test_group.R#5)  ---------------------
  Internal Server Error (HTTP 500).
  1: group(verbose = TRUE) at testthat/test_group.R:5
  2: simple_paged("group", verbose)
  3: stop_for_status(result)
  
  -- 11. Error: node api returns records (@test_node.R#5)  -----------------------
  Internal Server Error (HTTP 500).
  1: node() at testthat/test_node.R:5
  2: simple_paged("node", verbose)
  3: stop_for_status(result)
  
  <request>
  GET http://api.iobis.org/occurrence?scientificname=Abra%20sibogai&skipid=-1
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 141423
  Time: 0.063 
  
  Retrieved 12 records of 12 (100%)
  Total time: 0.06 seconds
  
  Retrieved 12 records of 12 (100%)
  
  Retrieved 12 records of 12 (100%)
  
  Retrieved 12 records of 12 (100%)
  
  Retrieved 737 records of 737 (100%)
  
  Retrieved 16 records of 16 (100%)
  
  Retrieved 117 records of 117 (100%)
  
  Retrieved 121 records of 121 (100%)
  
  Retrieved 737 records of 737 (100%)
  
  Retrieved 575 records of 575 (100%)
  
  Retrieved 737 records of 737 (100%)
  
  Retrieved 51 records of 51 (100%)
  
  Retrieved 737 records of 737 (100%)
  
  
  Retrieved 378 records of 378 (100%)
  
  Retrieved 737 records of 737 (100%)
  -- 12. Error: occurrence returns records filtered on groups (@test_occurrence.R#
  Internal Server Error (HTTP 500).
  1: group() at testthat/test_occurrence.R:92
  2: simple_paged("group", verbose)
  3: stop_for_status(result)
  
  
  Retrieved 12 records of 12 (100%)
  
  
  Retrieved 12 records of 12 (100%)
  
  Retrieved 12 records of 12 (100%)
  
  Retrieved 12 records of 12 (100%)
  
  Retrieved 12 records of 12 (100%)
  
  Retrieved 12 records of 12 (100%)
  
  Retrieved 12 records of 12 (100%)
  -- 13. Error: occurrence POST works for geometry (@test_occurrence.R#156)  -----
  Internal Server Error (HTTP 500).
  1: capture.output({
         occ <- occurrence(geometry = geom, verbose = TRUE)
     }) at testthat/test_occurrence.R:156
  2: evalVis(expr)
  3: withVisible(eval(expr, pf))
  4: eval(expr, pf)
  5: eval(expr, pf)
  6: occurrence(geometry = geom, verbose = TRUE)
  7: stop_for_status(result)
  
  
  <request>
  GET http://api.iobis.org/taxon?obisid=453979
  Output: write_memory
  Options:
  * cainfo: D:/RCompile/recent/R-35~1.1/etc/curl-ca-bundle.crt
  * useragent: robis - https://github.com/iobis/robis
  * httpget: TRUE
  Headers:
  * Accept: application/json, text/xml, application/xml, */*
  Status: 200
  Age: 152982
  Time: 0.015 
  == testthat results  ===========================================================
  OK: 80 SKIPPED: 1 FAILED: 13
  1. Error: area api returns records (@test_area.R#5) 
  2. Error: checklist returns multiple records for a genus (@test_checklist.R#7) 
  3. Error: checklist returns multiple records for a year (@test_checklist.R#15) 
  4. Error: checklist returns multiple records for a group (@test_checklist.R#25) 
  5. Error: checklist qc flags work (@test_checklist.R#35) 
  6. Error: checklist allow multiple scientific names https://github.com/iobis/robis/issues/32 (@test_checklist.R#42) 
  7. Error: checklist returns requested fields https://github.com/iobis/robis/issues/33 (@test_checklist.R#48) 
  8. Error: checklist returns requested fields even when missing https://github.com/iobis/robis/issues/33 (@test_checklist.R#55) 
  9. Error: datasets query parameter can be used (@test_dataset.R#14) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted