#' Run Shiny Application
#'
#' @param population A ypr population object
#' @export
#' @examples
#' if (interactive()) {
#' run_ypr_app()
#' }
run_ypr_app <- function(population = NULL) {
if (!is.null(population)) {
check_population(population)
}
shinyOptions(population = population)
shiny::shinyAppDir(
system.file("app", package = "shinyypr"),
options = list("launch.browser" = TRUE)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.