#' Run the Bayesian caribou demographic projection app
#'
#' This requires the BayesianCaribouDemographicProjection package to be
#' installed from GitHub:
#' `remotes::install_github("LandSciTech/BayesianCaribouDemographicProjection")`
#'
#' @return launches a shiny app in the browser
#' @export
#' @family demography
#'
#' @examples
#' if(FALSE){
#' demographicProjectionApp()
#' }
#'
demographicProjectionApp <- function() {
if(rlang::is_installed("BayesianCaribouDemographicProjection")){
BayesianCaribouDemographicProjection::demographicProjectionApp()
} else {
stop("The package: BayesianCaribouDemographicProjection",
" is required to run the app. \nPlease install it with:",
"devtools::install_github('LandSciTech/BayesianCaribouDemographicProjection')")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.