Running ‘testthat.R’ [116s/148s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(osmapiR)
  Data (c) OpenStreetMap contributors, ODbL 1.0. https://www.openstreetmap.org/copyright
  > 
  > test_check("osmapiR")
  Logged out from https://api.openstreetmap.org
  TODO: fix added namespaces in the 2on node R/osm_get_notes.R/osm_get_notes()
  TODO: fix added namespaces in the 2on node R/osm_get_notes.R/osm_get_notes()
  [ FAIL 3 | WARN 0 | SKIP 13 | PASS 1821 ]
  
  ══ Skipped tests (13) ══════════════════════════════════════════════════════════
  • On CRAN (13): 'test-changesets.R:243:3', 'test-changesets.R:335:18',
    'test-elements.R:88:16', 'test-elements.R:246:19', 'test-elements.R:295:19',
    'test-elements.R:482:17', 'test-elements.R:515:16', 'test-elements.R:548:3',
    'test-elements.R:595:16', 'test-map_notes.R:59:3', 'test-map_notes.R:126:3',
    'test-map_notes.R:248:3', 'test-miscellaneous.R:56:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-changeset_discussion.R:41:5'): osm_hide_comment_changeset_discussion works ──
  <httptest2_request/rlang_error/error/condition>
  Error in `stop_request(req)`: An unexpected request was made:
  GET https://master.apis.dev.openstreetmap.org/api/0.6/changeset/265646%3Finclude_discussion%3D%27true%27
  Expected mock file: osm.org/api/0.6/changeset/265646%3Finclude_discussion%3D%27true%27.*
  Backtrace:
       ▆
    1. ├─httptest2::with_mock_dir(...) at test-changeset_discussion.R:40:3
    2. │ ├─httptest2:::with_mock_path(...)
    3. │ │ └─base::eval.parent(expr)
    4. │ │   └─base::eval(expr, p)
    5. │ └─httptest2::with_mock_api(expr)
    6. │   └─base::eval.parent(expr)
    7. │     └─base::eval(expr, p)
    8. └─osmapiR::osm_get_changesets("265646", include_discussion = TRUE) at test-changeset_discussion.R:41:5
    9.   └─osmapiR:::osm_read_changeset(...)
   10.     └─httr2::req_perform(req)
   11.       └─httptest2 (local) mock(req)
   12.         └─httptest2:::stop_request(req)
   13.           └─rlang::abort(out, mockfile = req$mockfile, class = "httptest2_request")
  ── Error ('test-changesets.R:125:5'): osm_read_changeset works ─────────────────
  <httptest2_request/rlang_error/error/condition>
  Error in `stop_request(req)`: An unexpected request was made:
  GET https://master.apis.dev.openstreetmap.org/api/0.6/changeset/137595351%3Finclude_discussion%3D%27true%27
  Expected mock file: osm.org/api/0.6/changeset/137595351%3Finclude_discussion%3D%27true%27.*
  Backtrace:
       ▆
    1. ├─httptest2::with_mock_dir(...) at test-changesets.R:123:3
    2. │ ├─httptest2:::with_mock_path(...)
    3. │ │ └─base::eval.parent(expr)
    4. │ │   └─base::eval(expr, p)
    5. │ └─httptest2::with_mock_api(expr)
    6. │   └─base::eval.parent(expr)
    7. │     └─base::eval(expr, p)
    8. └─osmapiR::osm_get_changesets(changeset_id = 137595351, include_discussion = TRUE) at test-changesets.R:125:5
    9.   └─osmapiR:::osm_read_changeset(...)
   10.     └─httr2::req_perform(req)
   11.       └─httptest2 (local) mock(req)
   12.         └─httptest2:::stop_request(req)
   13.           └─rlang::abort(out, mockfile = req$mockfile, class = "httptest2_request")
  ── Error ('test-osmapiR_request.R:35:5'): error handling works ─────────────────
  <httr2_http_414/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(httr2::req_url_query(httr2::req_url_path_append(osmapi_request(), 
      "nodes"), nodes = paste(1:2000, collapse = ",")))`: HTTP 414 URI Too Long.
  The requested URL's length exceeds the capacity limit for this server.
  Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.
  Please, open an issue at `https://github.com/ropensci/osmapiR/issues` and report a reproducible example and the output of `httr2::last_response()`.
  Backtrace:
       ▆
    1. ├─httptest2::with_mock_dir(...) at test-osmapiR_request.R:2:3
    2. │ ├─httptest2:::with_mock_path(...)
    3. │ │ └─base::eval.parent(expr)
    4. │ │   └─base::eval(expr, p)
    5. │ └─httptest2::with_mock_api(expr)
    6. │   └─base::eval.parent(expr)
    7. │     └─base::eval(expr, p)
    8. ├─testthat::expect_error(...) at test-osmapiR_request.R:35:5
    9. │ └─testthat:::expect_condition_matching(...)
   10. │   └─testthat:::quasi_capture(...)
   11. │     ├─testthat (local) .capture(...)
   12. │     │ └─base::withCallingHandlers(...)
   13. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   14. └─httr2::req_perform(...)
   15.   └─httr2:::handle_resp(req, mock_resp, error_call = error_call)
   16.     └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
   17.       ├─rlang::catch_cnd(...)
   18.       │ ├─rlang::eval_bare(...)
   19.       │ ├─base::tryCatch(...)
   20.       │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   21.       │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   22.       │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   23.       │ └─base::force(expr)
   24.       └─rlang::abort(...)
  
  [ FAIL 3 | WARN 0 | SKIP 13 | PASS 1821 ]
  Error: Test failures
  Execution halted