vsi_is_local | R Documentation |
vsi_is_local()
returns whether the file/filesystem is "local".
Wrapper for VSIIsLocal()
in the GDAL API. Requires GDAL >= 3.6.
vsi_is_local(filename)
filename |
Character string. The path of the filesystem object to be tested. |
Logical scalar. TRUE
if if the input file path is local.
The concept of local is mostly by opposition with a network / remote file system whose access time can be long.
/vsimem/ is considered to be a local file system, although a non-persistent one.
# Requires GDAL >= 3.6
if (gdal_version_num() >= gdal_compute_version(3, 6, 0))
print(vsi_is_local("/vsimem/test-mem-file.tif"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.