I keep getting the following error:
Error in if (tail(xright, 1) > W) { : missing value where TRUE/FALSE needed
Reproducible example:
library(tmap)
s <- tm_shape(World, crs = "+proj=eqearth")
s + tm_polygons() # works
s + tm_polygons() + tm_scalebar(text.size = 11) # does not work
This is for version 4.2