Skip to content

ggplot2 maps on CRAN #27

@pitkant

Description

@pitkant

sorvi 0.8.21 was published yesterday (2023-08-22) on CRAN. However, in the package vignette there seems to be some problem with drawing maps with ggplot2:

library(ggplot2)
map1931 <- get_municipalities(year = 1931)
ggplot(map1931) + geom_sf()
#> Warning in grid.Call.graphics(C_path, x$x, x$y, index, switch(x$rule, winding =
#> 1L, : Path drawing not available for this device
[...]
#> Warning in grid.Call.graphics(C_path, x$x, x$y, index, switch(x$rule, winding =
#> 1L, : Path drawing not available for this device

This is not a unique warning, see e.g. r-spatial/sf#1395 and ggseg/ggseg#85. Additionally Warning in grid.Call.graphics warnings can be related to something else, such as "semi-transparency is not supported on this device: reported only once per page" in the case of sotkanet README: https://cloud.r-project.org/web/packages/sotkanet/readme/README.html

I wonder if this is a CRAN related issue or if the vignette was generated locally. sessionInfo would seem to suggest that maybe the vignette was generated on your computer @antagomir ?

sessionInfo()
#> R version 4.3.0 (2023-04-21)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: Ubuntu 22.04.3 LTS

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions