Learn R Programming

libproj (version 8.1.0-1)

libproj_install_proj_data: Download and install PROJ data files

Description

Since PROJ 7.0, the data files used to convert between horizontal and vertical datums are packaged separately. You can access these files as needed using the PROJ networking capability (e.g., with libproj_configure(network_enabled = TRUE)) or you can download them all at once. This function searches for the latest release from the PROJ-data.

Usage

libproj_install_proj_data(
  where = libproj_default_data_dir(),
  overwrite = NA,
  quiet = FALSE
)

libproj_has_proj_data(where = libproj_default_data_dir())

Arguments

where

The directory into which data files will be installed.

overwrite

Use NA to overwrite if newer or TRUE to overwrite completely.

quiet

Use TRUE to suppress status messages

Value

TRUE if files were downloaded and installed, FALSE otherwise

Examples

Run this code
# NOT RUN {
# will download ~600 MB!
# }
# NOT RUN {
libproj_install_proj_data()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab