#' General query function
#'
#' @param sql_query character; sql query
#' @export
xc_query <- function(sql_query){
res <- tbl(src = options()$statskier_src,from = sql(sql_query)) %>%
collect() %>%
as.data.frame()
res
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.