Skip to contents

A layer allows one Arrow stream at a time, so a stream taken with arrow_stream() has to be released before the layer can be read again. Doing nothing releases it too, when R next collects it.

Usage

release_arrow_stream(stream)

Arguments

stream

A stream from arrow_stream().

Value

NULL, invisibly. Releasing a stream twice is harmless.

Examples

ds <- gdal_open(system.file("extdata/test.gpkg", package = "GDAL7"))
stream <- arrow_stream(get_layer(ds, 1))
release_arrow_stream(stream)
gdal_close(ds)