| Title: | Self-Contained gdalraster Builds for Windows |
|---|---|
| Description: | Installs a self-contained GDAL build runtime on Windows and builds a vendored gdalraster package against it. The resulting package carries its native dependency closure and runtime data, so it loads in fresh R sessions without activation hooks or environment changes. |
| Authors: | Jimmy Briggs [aut, cre] (ORCID: <https://orcid.org/0000-0002-7489-8787>) |
| Maintainer: | Jimmy Briggs <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.5.0 |
| Built: | 2026-10-18 06:30:53 UTC |
| Source: | https://github.com/jimbrig/gdalraster.windows |
Compiles gdalraster against the managed GDAL SDK, vendors the bundle's
DLL dependency closure, GDAL/PROJ data, and pure-Python utilities into the
installed package, then records build provenance.
gdal_build_gdalraster( gdal_home = default_gdal_home(), lib = NULL, isolated = FALSE, user_lib = NULL, source_tarball = NULL, repo = .gdalraster_repo, ref = "HEAD", upgrade = FALSE, repos = getOption("repos"), force = FALSE, enable_python = TRUE )gdal_build_gdalraster( gdal_home = default_gdal_home(), lib = NULL, isolated = FALSE, user_lib = NULL, source_tarball = NULL, repo = .gdalraster_repo, ref = "HEAD", upgrade = FALSE, repos = getOption("repos"), force = FALSE, enable_python = TRUE )
gdal_home |
Installed GDAL build runtime. |
lib |
Destination library. Defaults to |
isolated |
Install into the package-managed isolated library instead of
|
user_lib |
Deprecated. |
source_tarball |
Optional local |
repo |
Upstream source repository. |
ref |
Git reference used for the source archive. |
upgrade |
Install missing R dependencies before compiling. |
repos |
CRAN-like repositories used when |
force |
Replace an existing |
enable_python |
Provision the managed embedded-Python |
Invisibly, the destination library.
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.
gdal_enable_python( lib = NULL, isolated = FALSE, user_lib = NULL, python = NULL, site_packages = NULL, quiet = FALSE )gdal_enable_python( lib = NULL, isolated = FALSE, user_lib = NULL, python = NULL, site_packages = NULL, quiet = FALSE )
lib |
Library containing the self-contained |
isolated |
Use the package-managed isolated library instead of
|
user_lib |
Deprecated. |
python |
Optional path to the CPython executable GDAL embeds. |
site_packages |
Optional explicit |
quiet |
Suppress status messages. |
Invisibly, the .pth path, or NULL when no system CPython can be
located.
Resolution order is the gdalraster.windows.gdal_home option, the
GDALRASTER_WINDOWS_GDAL_HOME environment variable, then the package-managed
user data directory. The returned path is normalized to forward slashes.
gdal_home()gdal_home()
A single path.
Installs a release bundle used to compile gdal_build_gdalraster(). The
installed runtime is a build-time SDK; packages produced by
gdal_build_gdalraster() vendor everything needed at run time.
gdal_install_runtime( repo = .bundle_repo, tag = "latest", asset_pattern = .bundle_asset_pattern, gdal_home = default_gdal_home(), force = FALSE, local_zip = NULL, fallback_zip = NULL )gdal_install_runtime( repo = .bundle_repo, tag = "latest", asset_pattern = .bundle_asset_pattern, gdal_home = default_gdal_home(), force = FALSE, local_zip = NULL, fallback_zip = NULL )
repo |
GitHub repository that publishes bundle releases. |
tag |
Bundle release tag or |
asset_pattern |
Regular expression selecting a bundle zip asset. |
gdal_home |
Destination runtime directory. |
force |
Reinstall an existing runtime. |
local_zip |
Optional local bundle zip. This takes precedence over a release download. |
fallback_zip |
Optional local zip used if release resolution or download fails. |
The installer is idempotent. When the requested bundle tag is already
recorded in MANIFEST.dcf, installation is skipped unless force = TRUE.
Invisibly, the installed runtime directory.
Installs the GDAL build runtime when needed, builds and vendors
gdalraster, provisions embedded Python when available, and verifies the
result in fresh processes. The default destination is .libPaths()[1].
gdal_setup( lib = NULL, isolated = FALSE, user_lib = NULL, update = FALSE, force = FALSE, tag = "latest", local_zip = NULL, fallback_zip = NULL, source_tarball = NULL, upgrade = FALSE, verify = TRUE )gdal_setup( lib = NULL, isolated = FALSE, user_lib = NULL, update = FALSE, force = FALSE, tag = "latest", local_zip = NULL, fallback_zip = NULL, source_tarball = NULL, upgrade = FALSE, verify = TRUE )
lib |
Destination library for |
isolated |
Install into the package-managed isolated library instead of
|
user_lib |
Deprecated. |
update |
Upgrade the runtime to the requested/latest bundle and rebuild. |
force |
Reinstall and rebuild even when provenance is current. |
tag |
Runtime bundle release tag or |
local_zip |
Optional local runtime bundle. |
fallback_zip |
Optional local fallback runtime bundle. |
source_tarball |
Optional local |
upgrade |
Install |
verify |
Run |
Invisibly, a list describing performed actions.
Reports the installed GDAL runtime, the gdalraster build in the active
library, staleness against the newest gdal-v* bundle, embedded-Python
provisioning, and session collision risks without changing the session.
gdal_sitrep( lib = NULL, isolated = FALSE, user_lib = NULL, network = rlang::is_interactive(), quiet = FALSE )gdal_sitrep( lib = NULL, isolated = FALSE, user_lib = NULL, network = rlang::is_interactive(), quiet = FALSE )
lib |
Library expected to contain the managed |
isolated |
Inspect the package-managed isolated library instead of
|
user_lib |
Deprecated. |
network |
Query GitHub for the latest GDAL runtime bundle ( |
quiet |
Return state without printing it. |
The default inspects .libPaths()[1], the library used by
library(gdalraster). Pass lib for a custom library, or isolated = TRUE
for the package-managed isolated library.
Invisibly, a named list describing installation state.
Uninstall managed GDAL resources
gdal_uninstall( lib = NULL, isolated = FALSE, user_lib = NULL, runtime = TRUE, package = TRUE, python = TRUE, force = FALSE )gdal_uninstall( lib = NULL, isolated = FALSE, user_lib = NULL, runtime = TRUE, package = TRUE, python = TRUE, force = FALSE )
lib |
Library containing the managed |
isolated |
Remove the package-managed isolated library instead of
|
user_lib |
Deprecated. |
runtime |
Remove the GDAL build runtime. |
package |
Remove the managed |
python |
Remove managed embedded-Python |
force |
Confirm removal in non-interactive sessions. |
Invisibly, the removed paths.
Update the GDAL runtime and rebuild gdalraster
gdal_update( lib = NULL, isolated = FALSE, user_lib = NULL, tag = "latest", local_zip = NULL, fallback_zip = NULL, source_tarball = NULL, upgrade = FALSE, verify = TRUE )gdal_update( lib = NULL, isolated = FALSE, user_lib = NULL, tag = "latest", local_zip = NULL, fallback_zip = NULL, source_tarball = NULL, upgrade = FALSE, verify = TRUE )
lib |
Destination library for |
isolated |
Install into the package-managed isolated library instead of
|
user_lib |
Deprecated. |
tag |
Runtime bundle release tag or |
local_zip |
Optional local runtime bundle. |
fallback_zip |
Optional local fallback runtime bundle. |
source_tarball |
Optional local |
upgrade |
Install |
verify |
Run |
The result of gdal_setup(), invisibly.
Runs verification in fresh Rscript --vanilla processes. Checks the GDAL
Algorithm API, GEOS and CRS support, Arrow/Parquet/HDF5/netCDF driver
registration, a first Parquet dataset open, and the GeoPackage Python
validator when embedded Python has been provisioned.
gdal_verify( lib = NULL, isolated = FALSE, user_lib = NULL, python = TRUE, quiet = FALSE )gdal_verify( lib = NULL, isolated = FALSE, user_lib = NULL, python = TRUE, quiet = FALSE )
lib |
Library containing the managed |
isolated |
Verify the package-managed isolated library instead of
|
user_lib |
Deprecated. |
python |
Run the embedded-Python validation when its managed |
quiet |
Suppress verification output. |
TRUE on success and FALSE on failure.