Running 'testthat.R' [177s]
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)  --------------------
  transfer closed with outstanding read data remaining
  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)
  
  -- 2. Error: Language-variant bounding lookups work (@test_geo.R#44)  ----------
  Service Unavailable (HTTP 503).
  1: get_geo_box("Q12988", "NorthEast", "Q184287", "SouthWest", language = "fr") at testthat/test_geo.R:44
  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::stop_for_status(result)
  
  == testthat results  ===========================================================
  [ OK: 23 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: Simple bounding lookups work (@test_geo.R#37) 
  2. Error: Language-variant bounding lookups work (@test_geo.R#44) 
  
  Error: testthat unit tests failed
  Execution halted