Skip to content

Add arguments close and quiet in gdal_run()#941

Merged
ctoney merged 7 commits intofirelab:mainfrom
ctoney:gdal_run_close
Apr 2, 2026
Merged

Add arguments close and quiet in gdal_run()#941
ctoney merged 7 commits intofirelab:mainfrom
ctoney:gdal_run_close

Conversation

@ctoney
Copy link
Copy Markdown
Member

@ctoney ctoney commented Apr 2, 2026

@param close Logical value, FALSE by default. Set to TRUE to finalize
the algorithm immediately after it is run, which completes any pending
actions such as closing output datasets. This is useful if you do not need to
access the output as objects, e.g., when only generating file output for
later use. See GDALAlg$close().
@param quiet Logical value, FALSE by default. Set to TRUE to suppress
progress reporting along with various messages and warnings. Sets the value
of GDALAlg$quiet.

e.g.,

# finalize the algorithm immediately after it is run if only generating
# file output for later use:
gdal_run("raster convert", args, close = TRUE)

# or, assign to a variable and access algorithm output as a dataset object
alg <- gdal_run("raster convert", args)
ds <- alg$output()
alg$release()

@ctoney ctoney merged commit 9fce9c7 into firelab:main Apr 2, 2026
7 checks passed
@ctoney ctoney deleted the gdal_run_close branch April 2, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant