-
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
bug in example #888
Comments
@mtennekes Thanks for fixing ! Another example is unfortunately erroring tm_shape(rivers) +
tm_lines(lwd = "strokelwd",
lwd.scale = tm_scale_asis(values.scale = 0.2, value.neutral = 2),
col = "scalerank",
col.scale = tm_scale_categorical(values = "seaborn.dark"))
#> Error in !legs_aes$legend[[k]]$active : invalid argument type Error is likely in tmap/R/step4_helper_legends.R, line 100. Thanks again, it know it's probably hard to manage such a huge task. It is just that I'd rather have green checks before starting to try upgrading to tmap v4 in my own (extensive) tmap code. When I have time to spend on tmap, I will propose to do messaging with cli.
Unrelated: One thing that's really important for me (unrelated to the example issue) is the hovering feature in view mode. In v3, the first variable would automatically be picked for hovering and assigned to The solution I propose for v4 is simply to show hovering when (It should still be the title of the popup) I will follow the main issue on this, but wanted to raise it again. |
Bug fixed (thanks for reporting) To be honest, I don't really have a good (manual) testing method. The recent bugs are caused by a new feature I'm working on (glyphs) while being too lazy to start a new branch. Is there a simple way to test everything before pushing to the main branch? I only know Messaging: those upgrades you propose to work on would be awesome! Thanks! About hovering. So if I understand correctly in my post #851 (comment)
the last rule will be changed to: hover = |
I understand. I tend to be lazy too. Like I sketched back in September 2023, you could just add a dump of tests just to test for no error. if you add this to file like tests/testthat/test-dump.R # test easily that no regression occurs
test_that("No regression occurs", {
skip_on_cran()
expect_no_error({a tmap example})
expect_no_error({a tmap example})
}) FInally, there is
That would make sense! thanks. I tend to see more clearly when I can interact with it, but basic support in v4 would be more than welcome for starters! |
CI is green again, thanks for fixing! 🎉 |
Error is likely in R/step2_helper_data.R:21 or R/step2_helper_data.R:49
The text was updated successfully, but these errors were encountered: