| set_postgres_storage | R Documentation |
Persist GitStats data in a PostgreSQL database. R classes,
custom attributes, and column types are preserved via a _metadata table.
Requires DBI, RPostgres, and jsonlite packages.
set_postgres_storage(
gitstats,
host = NULL,
port = NULL,
dbname = NULL,
user = NULL,
password = NULL,
schema = "git_stats",
...
)
gitstats |
A GitStats object. |
host |
A character, database host. |
port |
An integer, database port. |
dbname |
A character, database name. |
user |
A character, database user. |
password |
A character, database password. |
schema |
A character, database schema (default |
... |
Additional arguments passed to
|
A GitStats object (invisibly).
## Not run:
my_gitstats <- create_gitstats() |>
set_postgres_storage(
dbname = "my_database",
host = "localhost",
user = "postgres",
password = "secret"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.