inst/examples/ex_TileDB-Cloud.R

library(tiledb)

## Given an account at TileDB Cloud with username and password we can access the data
## Here we access username and password as environment variables
config <- tiledb_config()
config["rest.username"] <- Sys.getenv("TILEDB_REST_USERNAME")
config["rest.password"] <- Sys.getenv("TILEDB_REST_PASSWORD")
ctx <- tiledb_ctx(config)

array_name <- "tiledb://TileDB-Inc/quickstart_sparse"

arr <- tiledb_array(array_name, return_as="data.frame")
show(arr[])

Try the tiledb package in your browser

Any scripts or data that you put into this service are public.

tiledb documentation built on Sept. 27, 2023, 9:06 a.m.