Running 'testthat.R' [39s]
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
  Backtrace:
    1. nlgeocoder::nl_geocode("Martinikerkhof 3 Groningen", output = "data.frame")
    2. base::lapply(...)
    3. nlgeocoder:::FUN(X[[i]], ...)
    4. nlgeocoder::nl_free(q = loc, type = type, ..., rows = 1, verbose = verbose)
    5. jsonlite::read_json(q_url, simplifyVector = TRUE)
    6. jsonlite::parse_json(...)
    7. jsonlite:::parse_and_simplify(...)
    8. jsonlite:::parseJSON(txt, bigint_as_char)
    9. jsonlite:::parse_con(txt, bigint_as_char)
   11. base::open.connection(con, "rb")
  
  -- 2. Error: return as wgs84 is working (@test-nl_geocode.R#46)  ---------------
  cannot open the connection
  Backtrace:
    1. nlgeocoder::nl_geocode("Martinikerkhof 3 Groningen", output = "wgs84")
    2. base::lapply(...)
    3. nlgeocoder:::FUN(X[[i]], ...)
    4. nlgeocoder::nl_free(q = loc, type = type, ..., rows = 1, verbose = verbose)
    5. jsonlite::read_json(q_url, simplifyVector = TRUE)
    6. jsonlite::parse_json(...)
    7. jsonlite:::parse_and_simplify(...)
    8. jsonlite:::parseJSON(txt, bigint_as_char)
    9. jsonlite:::parse_con(txt, bigint_as_char)
   11. base::open.connection(con, "rb")
  
  -- 3. Error: return as rd is working (@test-nl_geocode.R#51)  ------------------
  cannot open the connection
  Backtrace:
    1. nlgeocoder::nl_geocode("Martinikerkhof 3 Groningen", output = "rd")
    2. base::lapply(...)
    3. nlgeocoder:::FUN(X[[i]], ...)
    4. nlgeocoder::nl_free(q = loc, type = type, ..., rows = 1, verbose = verbose)
    5. jsonlite::read_json(q_url, simplifyVector = TRUE)
    6. jsonlite::parse_json(...)
    7. jsonlite:::parse_and_simplify(...)
    8. jsonlite:::parseJSON(txt, bigint_as_char)
    9. jsonlite:::parse_con(txt, bigint_as_char)
   11. base::open.connection(con, "rb")
  
  -- 4. Error: return as data.frame is working (@test-nl_geocode.R#56)  ----------
  cannot open the connection
  Backtrace:
    1. nlgeocoder::nl_geocode("Martinikerkhof 3 Groningen", output = "data.frame")
    2. base::lapply(...)
    3. nlgeocoder:::FUN(X[[i]], ...)
    4. nlgeocoder::nl_free(q = loc, type = type, ..., rows = 1, verbose = verbose)
    5. jsonlite::read_json(q_url, simplifyVector = TRUE)
    6. jsonlite::parse_json(...)
    7. jsonlite:::parse_and_simplify(...)
    8. jsonlite:::parseJSON(txt, bigint_as_char)
    9. jsonlite:::parse_con(txt, bigint_as_char)
   11. base::open.connection(con, "rb")
  
  -- 5. Error: restrict search to Groningen (@test-nl_geocode.R#61)  -------------
  cannot open the connection
  Backtrace:
    1. nlgeocoder::nl_geocode("Hoofdstraat", fq = "provincienaam:Groningen")
    2. base::lapply(...)
    3. nlgeocoder:::FUN(X[[i]], ...)
    4. nlgeocoder::nl_free(q = loc, type = type, ..., rows = 1, verbose = verbose)
    5. jsonlite::read_json(q_url, simplifyVector = TRUE)
    6. jsonlite::parse_json(...)
    7. jsonlite:::parse_and_simplify(...)
    8. jsonlite:::parseJSON(txt, bigint_as_char)
    9. jsonlite:::parse_con(txt, bigint_as_char)
   11. base::open.connection(con, "rb")
  
  -- 6. Error: restrict fields (@test-nl_geocode.R#66)  --------------------------
  cannot open the connection
  Backtrace:
    1. nlgeocoder::nl_geocode(...)
    2. base::lapply(...)
    3. nlgeocoder:::FUN(X[[i]], ...)
    4. nlgeocoder::nl_free(q = loc, type = type, ..., rows = 1, verbose = verbose)
    5. jsonlite::read_json(q_url, simplifyVector = TRUE)
    6. jsonlite::parse_json(...)
    7. jsonlite:::parse_and_simplify(...)
    8. jsonlite:::parseJSON(txt, bigint_as_char)
    9. jsonlite:::parse_con(txt, bigint_as_char)
   11. base::open.connection(con, "rb")
  
  -- 7. Error: Dvorákhof (@test-utf8.R#4)  ---------------------------------------
  cannot open the connection
  Backtrace:
   1. nlgeocoder::nl_suggest("Dvorákhof")
   2. jsonlite::read_json(q_url, simplifyVector = TRUE)
   3. jsonlite::parse_json(...)
   4. jsonlite:::parse_and_simplify(...)
   5. jsonlite:::parseJSON(txt, bigint_as_char)
   6. jsonlite:::parse_con(txt, bigint_as_char)
   8. base::open.connection(con, "rb")
  
  == testthat results  ===========================================================
  [ OK: 0 | SKIPPED: 26 | WARNINGS: 7 | FAILED: 7 ]
  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) 
  3. Error: return as rd is working (@test-nl_geocode.R#51) 
  4. Error: return as data.frame is working (@test-nl_geocode.R#56) 
  5. Error: restrict search to Groningen (@test-nl_geocode.R#61) 
  6. Error: restrict fields (@test-nl_geocode.R#66) 
  7. Error: Dvorákhof (@test-utf8.R#4) 
  
  Error: testthat unit tests failed
  Execution halted