-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tmap4: checks for CRAN submission #1014
Comments
Hi @mtennekes Just re-ran revdep check... Only pacu remaining. (now fixed) |
MazamaSpatialPlots and tmaptools (GH version) should be ok now. Not sure how to test |
This comment has been minimized.
This comment has been minimized.
Yes, easy to fix indeed. Will do that this afternoon. Any other rev-dep issues left? |
Nope, we are all set since we gave MazamaSpatialPlots a warning well in advance and the maintainer said he'll update the package once tmap hits CRAN |
Should be fixed: tmap_options(basemaps = "OpenStreetMap")
#> [v3->v4] `tmap_options()`: use basemap.server instead of basemaps |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
What do you think @Nowosad @olivroy and others: are we ready for CRAN submission? I'm on holiday next week, so I plan to submit it either tomorrow or in two weeks (27/28 Jan). I've included some urls to vignettes in the documentation. But the more pepper-spray the better (#979 (comment)). There are still some (non-critical) shiny issues #1024 left, but don't have time to look into those. |
Are you currently depending on dev leafem? |
I guess not.... @olivroy do you know that? |
I think we are indeed ready. @tim-salabim I think some features work better with dev leafem, but not sure to what extent. Personally, I have been working with dev leafem for a few weeks. |
@mtennekes Re-ran rev-dep check.. pacu still has issues In their code, they call suppressMessages(tmap_options(initial.options) https://github.com/cldossantos/pacu/blob/0d88b9baa26fc959a8ddf34666a2a16491a685d4/R/plot.R#L146-L148 Which yields Error in `x[[i]]`:
! subscript out of bounds Possibly that ignoring unkown options would be best in this case. reprex: library(pacu)
extd.dir <- system.file("extdata", package = "pacu")
area.of.interest <- sf::st_read(file.path(extd.dir, 'cobs_a_aoi.shp'), quiet = TRUE)
available.images <- readRDS(file.path(extd.dir, 'ds-browse-object.rds'))
out.dir <- extd.dir
s2.files <- list.files(out.dir, '\\.zip', full.names = TRUE)
ndvi.img <- pa_compute_vi(s2.files,
vi = 'ndvi',
aoi = area.of.interest,
verbose = FALSE)
pa_plot(ndvi.img, main = 'NDVI') |
which ones? |
Issue with Are there any remaining rev-dep issues? devtools::check() is OK with cran version of leafem and dev version of tmaptools (which I'll submit now). If all lights are green, I'll submit tmap tomorrow. |
All good, thank you! |
tmaptools 3.2 already on its way to CRAN @olivroy : to check the package files with
system.file("img/tmap.png", package="tmap") with system.file("man/figures/logo.png", package="tmap") |
it seems that system.file("help", "figures", "logo.png", package = "tmap") may work? To hide a particular file, just add to man/figures/shiny_plot/view.jpg |
Did you also encounter these rev-dep issues @olivroy ? Anything we can do to solve them? CRAN-pretest-waiting emailDear maintainer, package tmap_4.0.tar.gz has been auto-processed. The auto-check found problems when checking the first order strong reverse dependencies. *** Changes to worse in reverse dependencies *** Log dir: https://win-builder.r-project.org/incoming_pretest/tmap_4.0_20250127_172915/ Pretests: Last published version on CRAN: CRAN Web: https://cran.r-project.org/package=tmap Best regards, Changes to worse in reverse depends: Package: mapping Package: MazamaSpatialPlots test_check("MazamaSpatialPlots") ══ Failed tests ════════════════════════════════════════════════════════════════
[ FAIL 6 | WARN 0 | SKIP 0 | PASS 35 ] Package: spatialrisk base::assign(".ptime", proc.time(), pos = "CheckExEnv") Name: choroplethTitle: Create choropleth mapAliases: choropleth** Examplestest <- points_to_polygon(nl_provincie, insurance, sum(amount, na.rm = TRUE)) ── tmap v3 code detected ─────────────────────────────────────────────────────── ── tmap v3 code detected ─────────────────────────────────────────────────────── |
Hi @mtennekes ! For MazamaSpatialPlots, we notified the author MazamaScience/MazamaSpatialPlots#23. Said he would update when tmap hits CRAN. For spatialrisk, I didn't see this. we'd need to ask them to suggest servr, or tmap would have to import servr. For mapping, I saw it, but ignored it. Looks like |
Finally on the verge of the CRAN submission of tmap 4. What is needed?
Should
tmap.glyphs
regarding glyph sizes in legendNice to have
Could
Everything else
Feel free to add items to these lists. Also to close old issues that became irrelevant.
The text was updated successfully, but these errors were encountered: