data-raw/io_world_map.R

library(dplyr)
library(ggplot2)
library(rnaturalearth)
library(s2)
library(sf)

sf_use_s2(FALSE)

io_world_map <-
  rnaturalearth::ne_countries(scale = "medium", returnclass = "sf") %>%
  st_make_valid() %>%
  st_crop(c(
    "xmin" = -170,
    "xmax" = 180,
    "ymin" = -56,
    "ymax" = 91
  )) %>%
  select(country = adm0_a3, geometry)

sf_use_s2( TRUE)

usethis::use_data(io_world_map, overwrite = TRUE, internal = TRUE)
okrebs/iotr documentation built on Dec. 12, 2024, 6:20 p.m.