r-tmap/tmap

print v3 to v4 translated code in console

Closed this issue · 7 comments

If the package is automatically translating the code from v3 to v4, would it be possible to make the translation print in the console, at least for learning purposes?

It could be a global option.

#> tm_lines: Deprecated tmap v3 code detected. Code translated to v4
#> charts not implemented in view mode

Yes, good idea. Not sure about the amount of work that this will take.
As long as this issue is open, I'll considering it.

Support! Mainly I am trying to figure out how to use the v3 legend.hist = TRUE in the new style

Done! fa7c6e5

Well, not meant for 100% copy-paste, but with a series of messages that also has an educational value (hopefully).

I've tested most of the examples from v3. Please check

Thanks a lot. That was a lot of effort you have put into it (I checked the commit). As you said, it is not 100% copy-paste, but it's helpful to begin the edits. There seems to be a lot to learn.

I really appreciate all the effort.

Thx. Our aim is to make tmap much more intuitive: rather than having to go through a huge list of arguments (even myself!), the systematic approach of v4 will make it a lot easier (hopefully) to find what you're after.

Making it 100% copy-paste is of course possible, but not sure if it's worth the effort.

I think this can be closed! I think users will find them very helpful Great effort by @mtennekes here!