Skip to contents

It renames the driver's basename, i.e., 'path/oldname' to 'path/newname'.

Usage

storr_rename(uri, newname, context = NULL)

Arguments

uri

The URI path of storr.

newname

Suffix to rename storr URI path.

context

Optional tiledb_ctx object.

Value

The new uri path, invisibly.

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"