It renames the driver's basename, i.e., 'path/oldname' to 'path/newname'.
Arguments
- uri
The URI path of storr.
- newname
Suffix to rename storr URI path.
- context
Optional tiledb_ctx object.
See also
Other storr-utilities:
storr_copy(),
storr_move()
Examples
uri <- tempfile()
sto <- storr_tiledb(uri, init = TRUE)
# set key-values
sto$set("a", 1)
sto$set("b", 2)
# Rename storr
newuri <- storr_rename(uri, newname = "new-storr")
sto2 <- storr_tiledb(newuri)
sto2$list()
#> [1] "a" "b"