Running ‘testthat.R’ [2s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(nlgeocoder)
  > 
  > test_check("nlgeocoder")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● Nice to have, but not right now (1)
  ● On CRAN (25)
  
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-nl_geocode.R:41:3): Dataframe returned (not an sf object) ─────
  cannot open URL 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=type:adres&q=Martinikerkhof%203%20Groningen&rows=1': HTTP status was '503 Service Unavailable'
  Backtrace:
    1. nlgeocoder::nl_geocode("Martinikerkhof 3 Groningen", output = "data.frame") test-nl_geocode.R:41:2
    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")
  ── Warning (test-nl_geocode.R:46:3): return as wgs84 is working ────────────────
  cannot open URL 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=type:adres&q=Martinikerkhof%203%20Groningen&rows=1': HTTP status was '503 Service Unavailable'
  Backtrace:
    1. nlgeocoder::nl_geocode("Martinikerkhof 3 Groningen", output = "wgs84") test-nl_geocode.R:46:2
    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")
  ── Warning (test-nl_geocode.R:51:3): return as rd is working ───────────────────
  cannot open URL 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=type:adres&q=Martinikerkhof%203%20Groningen&rows=1': HTTP status was '503 Service Unavailable'
  Backtrace:
    1. nlgeocoder::nl_geocode("Martinikerkhof 3 Groningen", output = "rd") test-nl_geocode.R:51:2
    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")
  ── Warning (test-nl_geocode.R:56:3): return as data.frame is working ───────────
  cannot open URL 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=type:adres&q=Martinikerkhof%203%20Groningen&rows=1': HTTP status was '503 Service Unavailable'
  Backtrace:
    1. nlgeocoder::nl_geocode("Martinikerkhof 3 Groningen", output = "data.frame") test-nl_geocode.R:56:2
    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")
  ── Warning (test-nl_geocode.R:61:3): restrict search to Groningen ──────────────
  cannot open URL 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=provincienaam:Groningen&q=Hoofdstraat&rows=1': HTTP status was '503 Service Unavailable'
  Backtrace:
    1. nlgeocoder::nl_geocode("Hoofdstraat", fq = "provincienaam:Groningen") test-nl_geocode.R:61:2
    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")
  ── Warning (test-nl_geocode.R:66:3): restrict fields ───────────────────────────
  cannot open URL 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=type:adres&q=Hoofdstraat&fl=woonplaatsnaam,centroide_ll&rows=1': HTTP status was '503 Service Unavailable'
  Backtrace:
    1. nlgeocoder::nl_geocode(...) test-nl_geocode.R:66:2
    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")
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-nl_geocode.R:41:3): Dataframe returned (not an sf object) ───────
  Error: cannot open the connection to 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=type:adres&q=Martinikerkhof%203%20Groningen&rows=1'
  Backtrace:
       █
    1. └─nlgeocoder::nl_geocode("Martinikerkhof 3 Groningen", output = "data.frame") test-nl_geocode.R:41:2
    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)
   10.                   ├─base::open(con, "rb")
   11.                   └─base::open.connection(con, "rb")
  ── Error (test-nl_geocode.R:46:3): return as wgs84 is working ──────────────────
  Error: cannot open the connection to 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=type:adres&q=Martinikerkhof%203%20Groningen&rows=1'
  Backtrace:
       █
    1. └─nlgeocoder::nl_geocode("Martinikerkhof 3 Groningen", output = "wgs84") test-nl_geocode.R:46:2
    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)
   10.                   ├─base::open(con, "rb")
   11.                   └─base::open.connection(con, "rb")
  ── Error (test-nl_geocode.R:51:3): return as rd is working ─────────────────────
  Error: cannot open the connection to 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=type:adres&q=Martinikerkhof%203%20Groningen&rows=1'
  Backtrace:
       █
    1. └─nlgeocoder::nl_geocode("Martinikerkhof 3 Groningen", output = "rd") test-nl_geocode.R:51:2
    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)
   10.                   ├─base::open(con, "rb")
   11.                   └─base::open.connection(con, "rb")
  ── Error (test-nl_geocode.R:56:3): return as data.frame is working ─────────────
  Error: cannot open the connection to 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=type:adres&q=Martinikerkhof%203%20Groningen&rows=1'
  Backtrace:
       █
    1. └─nlgeocoder::nl_geocode("Martinikerkhof 3 Groningen", output = "data.frame") test-nl_geocode.R:56:2
    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)
   10.                   ├─base::open(con, "rb")
   11.                   └─base::open.connection(con, "rb")
  ── Error (test-nl_geocode.R:61:3): restrict search to Groningen ────────────────
  Error: cannot open the connection to 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=provincienaam:Groningen&q=Hoofdstraat&rows=1'
  Backtrace:
       █
    1. └─nlgeocoder::nl_geocode("Hoofdstraat", fq = "provincienaam:Groningen") test-nl_geocode.R:61:2
    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)
   10.                   ├─base::open(con, "rb")
   11.                   └─base::open.connection(con, "rb")
  ── Error (test-nl_geocode.R:66:3): restrict fields ─────────────────────────────
  Error: cannot open the connection to 'https://geodata.nationaalgeoregister.nl/locatieserver/v3/free?fq=type:adres&q=Hoofdstraat&fl=woonplaatsnaam,centroide_ll&rows=1'
  Backtrace:
       █
    1. └─nlgeocoder::nl_geocode(...) test-nl_geocode.R:66:2
    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)
   10.                   ├─base::open(con, "rb")
   11.                   └─base::open.connection(con, "rb")
  
  [ FAIL 6 | WARN 6 | SKIP 26 | PASS 1 ]
  Error: Test failures
  Execution halted