% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zzz.R
\name{auto_set_proj_env}
\alias{auto_set_proj_env}
\title{Auto-detect PROJ_LIB and GDAL_DATA directories}
\usage{
auto_set_proj_env(verbose = FALSE)
}
\arguments{
\item{verbose}{If \code{TRUE}, emits a \code{cli} message
confirming what was detected.}
}
\value{
Invisibly, a named list with \code{PROJ_LIB} and
        \code{GDAL_DATA} (the values that were set, or
        \code{NA_character_} if a value was already present
        or no candidate was found).
}
\description{
Probes the common system locations for PROJ \code{proj.db} and
GDAL data directories, on macOS Homebrew (Apple silicon and
Intel), Linuxbrew, conda / mamba environments, and Debian /
Ubuntu / Fedora apt or dnf installs. Sets the corresponding
environment variables only when they are not already set, so a
user-provided value always wins. Idempotent: safe to call
repeatedly.
}
\details{
Called automatically from \code{.onLoad}; call manually after
installing PROJ / GDAL via Homebrew if you want to refresh the
env without restarting R.
}
