Because CRAN enforces strict limits on package size, several large datasets
are hosted externally rather than bundled in the package. check_geodata()
locates or retrieves these files using the following priority:
user-specified local_dirs
the package extdata directory
the per-user cache directory via tools::R_user_dir("ggmapcn", "data")
High-level mapping functions such as geom_mapcn() and geom_world()
call check_geodata() internally, so most users do not need to invoke it
directly. However, running it explicitly can be useful to pre-fetch or verify
required files.
On networks that cannot reliably access cdn.jsdelivr.net or
raw.githubusercontent.com, downloads may time out and the corresponding
entries in the returned vector will be NA. In such cases, users may
manually download the required files from the data repository and place them
into a directory supplied through local_dirs, the package extdata
directory, or the user cache directory so that downloads are skipped.
Note: recent versions of geom_world() use the following world datasets:
world_countries.rda, world_coastlines.rda, and
world_boundaries.rda. The legacy world.rda file is no longer
used.