- using R version 4.5.2 (2025-10-31)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-10) 14.3.0
GNU Fortran (Debian 14.3.0-10) 14.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘photon/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘photon’ version ‘0.7.4’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘photon’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the package can be unloaded cleanly ... [0s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking whether startup messages can be suppressed ... [1s/1s] 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 ... [7s/9s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [4s/6s] 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
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [4s/5s] OK
Running ‘testthat.R’ [4s/5s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [4s/6s] OK
- checking PDF version of manual ... [5s/7s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR