Running 'testthat.R' [63s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(nlgeocoder)
  > 
  > test_check("nlgeocoder")
  -- 1. Error: Dataframe returned (not an sf object) (@test-nl_geocode.R#41)  ----
  cannot open the connection
  1: nl_geocode("Martinikerkhof 3 Groningen", output = "data.frame") at testthat/test-nl_geocode.R:41
  2: lapply(as.character(location), function(loc) {
         res <- nl_free(q = loc, type = type, ..., rows = 1, verbose = verbose)
         if (res$response$numFound) {
             res$response$docs[1, ]
         }
     })
  3: FUN(X[[i]], ...)
  4: nl_free(q = loc, type = type, ..., rows = 1, verbose = verbose)
  5: jsonlite::read_json(q_url, simplifyVector = TRUE)
  6: fromJSON(file(path), simplifyVector = simplifyVector, ...)
  7: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  8: parseJSON(txt, bigint_as_char)
  9: parse_con(txt, bigint_as_char)
  10: open(con, "rb")
  11: open.connection(con, "rb")
  
  -- 2. Error: return as wgs84 is working (@test-nl_geocode.R#46)  ---------------
  cannot open the connection
  1: nl_geocode("Martinikerkhof 3 Groningen", output = "wgs84") at testthat/test-nl_geocode.R:46
  2: lapply(as.character(location), function(loc) {
         res <- nl_free(q = loc, type = type, ..., rows = 1, verbose = verbose)
         if (res$response$numFound) {
             res$response$docs[1, ]
         }
     })
  3: FUN(X[[i]], ...)
  4: nl_free(q = loc, type = type, ..., rows = 1, verbose = verbose)
  5: jsonlite::read_json(q_url, simplifyVector = TRUE)
  6: fromJSON(file(path), simplifyVector = simplifyVector, ...)
  7: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  8: parseJSON(txt, bigint_as_char)
  9: parse_con(txt, bigint_as_char)
  10: open(con, "rb")
  11: open.connection(con, "rb")
  
  == testthat results  ===========================================================
  OK: 7 SKIPPED: 26 FAILED: 2
  1. Error: Dataframe returned (not an sf object) (@test-nl_geocode.R#41) 
  2. Error: return as wgs84 is working (@test-nl_geocode.R#46) 
  
  Error: testthat unit tests failed
  Execution halted