library(rscview) library(connectapi) library(pins) library(qs)
check_envvars() conn <- connectapi::connect( host = Sys.getenv("CONNECT_SERVER"), api_key = Sys.getenv("CONNECT_API_KEY") )
start_time <- Sys.time() logs <- get_audit_logs(conn, limit = Inf) end_time <- Sys.time() duration <- end_time - start_time
Info: get_audit_logs
took r paste(round(duration[[1]], 2), units(duration))
to run.
board <- pins::board_rsconnect() create_pin(logs, description = "Results pulled via `connectapi::get_audit_logs()` for audit reports", type = "qs") #prune versions to keep server from exploding board %>% pin_versions_prune("katie.masiello/logs", n=4)
# TO DO: add a create_tag to collect all the pins and dashboards # TO DO: add in a set_schedule command
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.