Skip to contents

Copy Storr to another URI

Usage

storr_copy(uri, to_uri, context = NULL)

Arguments

uri

The URI path of storr.

to_uri

Destination URI path to copy the storr to.

context

Optional tiledb_ctx object.

Value

The new uri path, invisibly.

See also

Other storr-utilities: storr_move(), storr_rename()

Examples

uri <- tempfile()
sto <- storr_tiledb(uri, init = TRUE)

# set key-values
sto$set("a", 1)
sto$set("b", 2)

# Copy storr to new URI
to_uri <- tempfile()
storr_copy(uri, to_uri)

sto2 <- storr_tiledb(to_uri)

sto2$list()
#> [1] "a" "b"