vsi_get_disk_free_space | R Documentation |
vsi_get_disk_free_space()
returns the free disk space available on the
filesystem. Wrapper for VSIGetDiskFreeSpace()
in the GDAL Common
Portability Library.
vsi_get_disk_free_space(path)
path |
Character string. A directory of the filesystem to query. |
Numeric scalar. The free space in bytes (as bit64::integer64
type), or -1
in case of error.
tmp_dir <- file.path("/vsimem", "tmpdir")
vsi_mkdir(tmp_dir)
vsi_get_disk_free_space(tmp_dir)
vsi_rmdir(tmp_dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.