powered by
vsi_supports_rnd_write() returns whether the filesystem supports random write. Wrapper for VSISupportsRandomWrite() in the GDAL API.
vsi_supports_rnd_write()
VSISupportsRandomWrite()
vsi_supports_rnd_write(filename, allow_local_tmpfile)
Logical scalar. TRUE if random write is supported.
TRUE
Character string. The path of the filesystem object to be tested.
Logical scalar. TRUE if the filesystem is allowed to use a local temporary file before uploading to the target location.
vsi_supports_seq_write()
# Requires GDAL >= 3.6 if (as.integer(gdal_version()[2]) >= 3060000) vsi_supports_rnd_write("/vsimem/test-mem-file.gpkg", TRUE)
Run the code above in your browser using DataLab