Running ‘testthat.R’ [5s/172s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(WikidataR)
  > 
  > test_check("WikidataR")
  ── 1. Error: Simple bounding lookups work (@test_geo.R#37)  ────────────────────
  HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
  1: get_geo_box("Q12988", "NorthEast", "Q184287", "SouthWest") at testthat/test_geo.R:37
  2: clean_geo(sparql_query(query)$results$bindings)
  3: do.call("rbind", lapply(results, function(item) {
         point <- unlist(strsplit(gsub(x = item$coord$value, pattern = "(Point\\(|\\))", 
             replacement = ""), " "))
         wd_id <- gsub(x = item$item$value, pattern = "http://www.wikidata.org/entity/", 
             replacement = "", fixed = TRUE)
         return(data.frame(item = wd_id, name = ifelse(item$name$value == wd_id, NA, item$name$value), 
             latitutde = as.numeric(point[1]), longitude = as.numeric(point[2]), stringsAsFactors = FALSE))
     }))
  4: lapply(results, function(item) {
         point <- unlist(strsplit(gsub(x = item$coord$value, pattern = "(Point\\(|\\))", 
             replacement = ""), " "))
         wd_id <- gsub(x = item$item$value, pattern = "http://www.wikidata.org/entity/", 
             replacement = "", fixed = TRUE)
         return(data.frame(item = wd_id, name = ifelse(item$name$value == wd_id, NA, item$name$value), 
             latitutde = as.numeric(point[1]), longitude = as.numeric(point[2]), stringsAsFactors = FALSE))
     })
  5: sparql_query(query)
  6: httr::GET("https://query.wikidata.org/bigdata/namespace/wdq/sparql", query = list(query = params), 
         httr::user_agent("WikidataR - https://github.com/Ironholds/WikidataR"), ...)
  7: request_perform(req, hu$handle$handle)
  8: request_fetch(req$output, req$url, handle)
  9: request_fetch.write_memory(req$output, req$url, handle)
  10: curl::curl_fetch_memory(url, handle = handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 25 SKIPPED: 0 FAILED: 1
  1. Error: Simple bounding lookups work (@test_geo.R#37) 
  
  Error: testthat unit tests failed
  Execution halted