load_star_database | R Documentation |
Load star_database (from a RDS file)
load_star_database(file)
file |
A string, name of the file that stores the object. |
A star_database
object.
star_database
Other star database deployment functions:
cancel_deployment()
,
deploy()
,
get_deployment_names()
mrs_rdb_file <- tempfile("mrs", fileext = ".rdb")
mrs_sqlite_file <- tempfile("mrs", fileext = ".sqlite")
mrs_sqlite_connect <- function() {
DBI::dbConnect(RSQLite::SQLite(),
dbname = mrs_sqlite_file)
}
mrs_db <- mrs_db |>
deploy(
name = "mrs",
connect = mrs_sqlite_connect,
file = mrs_rdb_file
)
mrs_db2 <- load_star_database(mrs_rdb_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.