#' Generate the path to the example database
#'
#' Make it easy to access the example database in the package for showing
#' examples of function use in the documentation.
#'
#' @param file Name of sqlite database for examples.
#'
#' @return A string with the path to the database.
#' @export
#'
#' @examples db_example("AcademicGraph.sqlite")
db_example <- function(file) {
system.file("extdata", file, package = "magutils", mustWork = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.