* using log directory 'd:/Rcompile/CRANpkg/local/4.5/osmapiR.Rcheck' * using R version 4.5.1 (2025-06-13 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'osmapiR/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'osmapiR' version '0.2.3' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'osmapiR' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] OK * checking whether startup messages can be suppressed ... [0s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [8s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [2s] ERROR Running examples in 'osmapiR-Ex.R' failed The error most likely occurred in: > ### Name: osm_get_changesets > ### Title: Get changesets > ### Aliases: osm_get_changesets > > ### ** Examples > > chaset <- osm_get_changesets(changeset_id = 137595351, include_discussion = TRUE) Error in `httr2::req_perform()`: ! HTTP 404 Not Found. Couldn't find a file/directory/API operation by that name on the OpenStreetMap server (HTTP 404) Feel free to contact the OpenStreetMap community if you have found a broken link / bug. Make a note of the exact URL of your 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. └─osmapiR::osm_get_changesets(changeset_id = 137595351, include_discussion = TRUE) 2. └─osmapiR:::osm_read_changeset(...) 3. └─httr2::req_perform(req) 4. └─httr2:::handle_resp(req, resp, error_call = error_call) 5. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call) 6. ├─rlang::catch_cnd(...) 7. │ ├─rlang::eval_bare(...) 8. │ ├─base::tryCatch(...) 9. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. │ └─base::force(expr) 13. └─rlang::abort(...) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [112s] ERROR Running 'testthat.R' [112s] 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 ── 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 ───────────────── 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 ───────────────── 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [7s] OK * checking PDF version of manual ... [23s] OK * checking HTML version of manual ... [10s] OK * DONE Status: 2 ERRORs