Skip to contents

proj_search_paths() returns the search path(s) for PROJ resource files, optionally setting them first.

Usage

proj_search_paths(paths = NULL)

Arguments

paths

Optional character vector containing one or more directory paths to set.

Value

A character vector containing the currently used search path(s) for PROJ resource files. An empty string ("") is returned if no search paths are returned by the function OSRGetPROJSearchPaths() in the GDAL Spatial Reference System C API.

Examples

proj_search_paths()
#> [1] "/home/runner/.local/share/proj" "/usr/share/proj"