* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/tmap.mapgl.Rcheck’ * using R Under development (unstable) (2026-01-16 r89305) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘tmap.mapgl/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘tmap.mapgl’ version ‘0.1.0’ * 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 whether package ‘tmap.mapgl’ can be installed ... [26s/27s] OK * checking package 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking whether startup messages can be suppressed ... 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 ... [37s/39s] OK * checking Rd files ... 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 examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘tmap.mapgl-Ex.R’ failed The error most likely occurred in: > ### Name: tm_mapbox > ### Title: Mapbox mode options > ### Aliases: tm_mapbox > > ### ** Examples > > ## No test: > library(tmap) > library(tmap.mapgl) > # getting API: https://walker-data.com/mapgl/articles/getting-started.html > # check API envir var: Sys.getenv("MAPBOX_PUBLIC_TOKEN") > > tmap_mode("mapbox") ℹ tmap modes "plot" -> "view" -> "mapbox" -> "maplibre" ℹ rotate with `tmap::rtm()`switch to "plot" with `tmap::ttm()` This message is displayed once per session. > tm_shape(World) + + tm_polygons("HPI", fill.scale = tm_scale_intervals(values = "brewer.rd_yl_gn")) Error in `mapgl::mapboxgl()`: ! A Mapbox access token is required. Get one from your account at https://www.mapbox.com, and do one of the following: ℹ Run `usethis::edit_r_environ()` and add the line MAPBOX_PUBLIC_TOKEN='your_token_goes_here'; ℹ Install the mapboxapi R package and run `mb_access_token('your_token_goes_here', install = TRUE)` ℹ Alternatively, supply your token to the `access_token` parameter in this function or run `Sys.setenv(MAPBOX_PUBLIC_TOKEN='your_token_goes_here') for this session. Backtrace: ▆ 1. ├─base (local) ``(x) 2. └─tmap:::print.tmap(x) 3. └─tmap:::step4_plot(...) 4. ├─base::do.call(...) 5. └─tmap.mapgl::tmapMapboxShape(...) 6. └─tmap.mapgl:::mapgl_shape(...) 7. ├─mapgl::set_projection(...) 8. ├─mapgl::add_navigation_control(...) 9. └─mapgl::mapboxgl(center = c(0, 0), zoom = zoom, pitch = o$pitch, style = style) 10. └─rlang::abort(...) Execution halted * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/blackswan/ripley/R/packages/tests-devel/tmap.mapgl.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 4:24.91, 221.66 + 32.35