Writes a managed .pth file into the system CPython site-packages
directory. The file points to the pure-Python osgeo_utils vendored inside
the installed gdalraster package. This does not modify PYTHONPATH and
does not affect isolated virtual environments.
Usage
gdal_enable_python(
lib = NULL,
isolated = FALSE,
user_lib = NULL,
python = NULL,
site_packages = NULL,
quiet = FALSE
)Arguments
- lib
Library containing the self-contained
gdalrasterpackage. Defaults to.libPaths()[1].- isolated
Use the package-managed isolated library instead of
.libPaths()[1]. Ignored whenlibis set.- user_lib
Deprecated.
user_lib = TRUEis now the default;user_lib = FALSEis equivalent toisolated = TRUE.- python
Optional path to the CPython executable GDAL embeds.
- site_packages
Optional explicit
site-packagesdirectory.- quiet
Suppress status messages.
