
Save a database activity report as an HTML file
save_db_activity_report.RdGenerates a self-contained HTML snapshot of a get_db_activity
result and optionally opens it in the default browser.
Arguments
- activity
A
db_activityobject fromget_db_activity.- output_dir
Directory where the HTML file is saved. Defaults to the current working directory.
- open
Logical. Open the file in the default browser after saving? Defaults to
TRUE.
Examples
if (FALSE) { # \dontrun{
con <- call.mydb()
activity <- get_db_activity(con)
save_db_activity_report(activity, output_dir = "~/db_reports")
} # }