| set_sqlite_storage | R Documentation |
Persist GitStats data in a SQLite database. R classes,
custom attributes, and column types are preserved via a _metadata table.
Requires DBI, RSQLite, and jsonlite packages.
set_sqlite_storage(gitstats, dbname = ":memory:")
gitstats |
A GitStats object. |
dbname |
A character, path to SQLite file. Defaults to |
A GitStats object (invisibly).
## Not run:
# File-based
my_gitstats <- create_gitstats() |>
set_sqlite_storage(dbname = "gitstats.sqlite")
# In-memory
my_gitstats <- create_gitstats() |>
set_sqlite_storage()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.