Running 'testthat.R' [45s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(WikidataR)
  > 
  > test_check("WikidataR")
  -- 1. Error: Simple entity-based geo lookups work (@test_geo.R#5)  -------------
  Failed to connect to query.wikidata.org port 443: Timed out
  1: get_geo_entity("Q62") at testthat/test_geo.R:5
  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: A specific item can be retrieved with an entire item code (@test_ge
  Failed to connect to wikidata.org port 443: Timed out
  1: expect_true({
         get_item("Q100")
         TRUE
     }) at testthat/test_gets.R:4
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_item("Q100") at testthat/test_gets.R:4
  5: lapply(id, wd_query, ...)
  6: FUN(X[[i]], ...)
  7: WikipediR::page_content(domain = "wikidata.org", page_name = title, as_wikitext = TRUE, 
         httr::user_agent("WikidataR - https://github.com/Ironholds/WikidataR"), ...)
  8: query(url, "pcontent", clean_response, query_param = query_param, ...)
  9: httr::GET(url, query = query_param, httr::user_agent("WikipediR - https://github.com/Ironholds/WikipediR"), 
         ...)
  10: request_perform(req, hu$handle$handle)
  11: request_fetch(req$output, req$url, handle)
  12: request_fetch.write_memory(req$output, req$url, handle)
  13: curl::curl_fetch_memory(url, handle = handle)
  
  -- 3. Error: A specific property can be retrieved with an entire prop code + nam
  Failed to connect to wikidata.org port 80: Timed out
  1: expect_true({
         get_property("Property:P10")
         TRUE
     }) at testthat/test_gets.R:12
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_property("Property:P10") at testthat/test_gets.R:12
  5: lapply(id, wd_query, ...)
  6: FUN(X[[i]], ...)
  7: WikipediR::page_content(domain = "wikidata.org", page_name = title, as_wikitext = TRUE, 
         httr::user_agent("WikidataR - https://github.com/Ironholds/WikidataR"), ...)
  8: query(url, "pcontent", clean_response, query_param = query_param, ...)
  9: httr::GET(url, query = query_param, httr::user_agent("WikipediR - https://github.com/Ironholds/WikipediR"), 
         ...)
  10: request_perform(req, hu$handle$handle)
  11: request_fetch(req$output, req$url, handle)
  12: request_fetch.write_memory(req$output, req$url, handle)
  13: curl::curl_fetch_memory(url, handle = handle)
  
  == testthat results  ===========================================================
  OK: 22 SKIPPED: 0 FAILED: 3
  1. Error: Simple entity-based geo lookups work (@test_geo.R#5) 
  2. Error: A specific item can be retrieved with an entire item code (@test_gets.R#4) 
  3. Error: A specific property can be retrieved with an entire prop code + namespace (@test_gets.R#12) 
  
  Error: testthat unit tests failed
  Execution halted