CRAN Package Check Results for Package photon

Last updated on 2025-12-11 07:49:47 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.7.4 5.02 50.88 55.90 OK
r-devel-linux-x86_64-debian-gcc 0.7.4 3.83 38.82 42.65 ERROR
r-devel-linux-x86_64-fedora-clang 0.7.4 11.00 76.72 87.72 OK
r-devel-linux-x86_64-fedora-gcc 0.7.4 11.00 84.98 95.98 OK
r-devel-windows-x86_64 0.7.4 7.00 72.00 79.00 OK
r-patched-linux-x86_64 0.7.4 6.15 45.84 51.99 ERROR
r-release-linux-x86_64 0.7.4 5.49 45.93 51.42 ERROR
r-release-macos-arm64 0.7.4 OK
r-release-macos-x86_64 0.7.4 11.00 132.00 143.00 OK
r-release-windows-x86_64 0.7.4 8.00 74.00 82.00 OK
r-oldrel-macos-arm64 0.7.4 OK
r-oldrel-macos-x86_64 0.7.4 12.00 166.00 178.00 OK
r-oldrel-windows-x86_64 0.7.4 10.00 81.00 91.00 OK

Check Details

Version: 0.7.4
Check: examples
Result: ERROR Running examples in ‘photon-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: new_photon > ### Title: Initialize a photon instance > ### Aliases: new_photon > > ### ** Examples > > # connect to public API > photon <- new_photon() > > # connect to arbitrary server > photon <- new_photon(url = "https://photonserver.org") > > if (has_java("11")) { + # set up a local instance in a temporary directory + dir <- file.path(tempdir(), "photon") + photon <- new_photon(dir, country = "Monaco") + } ℹ openjdk version "21.0.10-ea" 2026-01-20 ℹ OpenJDK Runtime Environment (build 21.0.10-ea+4-Debian-1) ℹ OpenJDK 64-Bit Server VM (build 21.0.10-ea+4-Debian-1, mixed mode, sharing) ℹ Fetching OpenSearch photon 0.7.4. ✔ Successfully downloaded OpenSearch photon 0.7.4. [1.4s] ℹ Fetching search index for Monaco, created on latest Error in `httr2::req_perform()`: ! Failed to perform HTTP request. Caused by error in `curl::curl_fetch_disk()`: ! Timeout was reached [download1.graphhopper.com]: Connection timed out after 10002 milliseconds Backtrace: ▆ 1. └─photon::new_photon(dir, country = "Monaco") 2. └─photon_local$new(...) 3. └─photon (local) initialize(...) 4. └─photon:::setup_photon_directory(...) 5. └─photon::download_searchindex(...) 6. └─httr2::req_perform(req, path = path) 7. └─httr2:::handle_resp(req, resp, error_call = error_call) 8. └─rlang::cnd_signal(resp) ✖ Failed to download search index. [10.2s] Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.7.4
Check: tests
Result: ERROR Running ‘testthat.R’ [3s/14s] 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(photon) > > test_check("photon") Saving _problems/test-setup-54.R [ FAIL 1 | WARN 0 | SKIP 4 | PASS 53 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • On CRAN (4): 'test-geocode.R:1:1', 'test-setup.R:23:3', 'test-setup.R:67:3', 'test-setup.R:81:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-setup.R:54:3'): search indices are matched ───────────────────── <httr2_failure/httr2_error/rlang_error/error/condition> Error in `httr2::req_perform(req)`: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [download1.graphhopper.com]: Connection timed out after 10002 milliseconds Backtrace: ▆ 1. └─photon::download_searchindex(...) at test-setup.R:54:3 2. ├─httr2::resp_body_string(httr2::req_perform(req)) 3. │ └─httr2:::check_response(resp) 4. │ └─httr2:::is_response(resp) 5. └─httr2::req_perform(req) 6. └─httr2:::handle_resp(req, resp, error_call = error_call) 7. └─rlang::cnd_signal(resp) [ FAIL 1 | WARN 0 | SKIP 4 | PASS 53 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.7.4
Check: examples
Result: ERROR Running examples in ‘photon-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: new_photon > ### Title: Initialize a photon instance > ### Aliases: new_photon > > ### ** Examples > > # connect to public API > photon <- new_photon() > > # connect to arbitrary server > photon <- new_photon(url = "https://photonserver.org") > > if (has_java("11")) { + # set up a local instance in a temporary directory + dir <- file.path(tempdir(), "photon") + photon <- new_photon(dir, country = "Monaco") + } ℹ openjdk version "21.0.10-ea" 2026-01-20 ℹ OpenJDK Runtime Environment (build 21.0.10-ea+4-Debian-1) ℹ OpenJDK 64-Bit Server VM (build 21.0.10-ea+4-Debian-1, mixed mode, sharing) ℹ Fetching OpenSearch photon 0.7.4. Downloading 90% ■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 0s Downloading 100% ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 0s ℹ Fetching OpenSearch photon 0.7.4. ✔ Successfully downloaded OpenSearch photon 0.7.4. [3.2s] ℹ Fetching search index for Monaco, created on latest Error in `httr2::req_perform()`: ! Failed to perform HTTP request. Caused by error in `curl::curl_fetch_disk()`: ! Timeout was reached [download1.graphhopper.com]: Connection timed out after 10000 milliseconds Backtrace: ▆ 1. └─photon::new_photon(dir, country = "Monaco") 2. └─photon_local$new(...) 3. └─photon (local) initialize(...) 4. └─photon:::setup_photon_directory(...) 5. └─photon::download_searchindex(...) 6. └─httr2::req_perform(req, path = path) 7. └─httr2:::handle_resp(req, resp, error_call = error_call) 8. └─rlang::cnd_signal(resp) ✖ Failed to download search index. [10.2s] Execution halted Flavor: r-patched-linux-x86_64

Version: 0.7.4
Check: tests
Result: ERROR Running ‘testthat.R’ [4s/15s] 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(photon) > > test_check("photon") Saving _problems/test-setup-54.R [ FAIL 1 | WARN 0 | SKIP 4 | PASS 53 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • On CRAN (4): 'test-geocode.R:1:1', 'test-setup.R:23:3', 'test-setup.R:67:3', 'test-setup.R:81:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-setup.R:54:3'): search indices are matched ───────────────────── <httr2_failure/httr2_error/rlang_error/error/condition> Error in `httr2::req_perform(req)`: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [download1.graphhopper.com]: Connection timed out after 10001 milliseconds Backtrace: ▆ 1. └─photon::download_searchindex(...) at test-setup.R:54:3 2. ├─httr2::resp_body_string(httr2::req_perform(req)) 3. │ └─httr2:::check_response(resp) 4. │ └─httr2:::is_response(resp) 5. └─httr2::req_perform(req) 6. └─httr2:::handle_resp(req, resp, error_call = error_call) 7. └─rlang::cnd_signal(resp) [ FAIL 1 | WARN 0 | SKIP 4 | PASS 53 ] Error: ! Test failures. Execution halted Flavor: r-patched-linux-x86_64

Version: 0.7.4
Check: examples
Result: ERROR Running examples in ‘photon-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: with_photon > ### Title: Local photon instances > ### Aliases: with_photon > > ### ** Examples > > # Get a public instance > pub_photon <- new_photon() > > # Mount a custom instance > new_photon(url = "https://localhost:8001/") <photon> Type : remote Server : https://localhost:8001/ > > # Geocode with the public instance only once > with_photon(pub_photon, geocode("Rutland")) Error in `httr2::req_perform()`: ! HTTP 502 Bad Gateway. Backtrace: ▆ 1. ├─photon::with_photon(pub_photon, geocode("Rutland")) 2. │ └─base::force(code) 3. └─photon::geocode("Rutland") 4. └─base::.mapply(iter, MoreArgs = options, FUN = geocode_impl) 5. └─photon (local) `<fn>`(q = dots[[1L]][[1L]], i = dots[[2L]][[1L]], env = `<env>`) 6. └─photon:::query_photon(...) 7. └─httr2::req_perform(req) 8. └─httr2:::handle_resp(req, resp, error_call = error_call) 9. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call) 10. ├─rlang::catch_cnd(...) 11. │ ├─rlang::eval_bare(...) 12. │ ├─base::tryCatch(...) 13. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 14. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 15. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 16. │ └─base::force(expr) 17. └─rlang::abort(...) Execution halted Flavor: r-release-linux-x86_64

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.