R/shiny_AtlasMaker.R

Defines functions shiny_AtlasMaker

Documented in shiny_AtlasMaker

#' Run a the AtlasMaker Shiny Demo
#'
#' @param app defaults to demo1
#' @return Demo of AtlasMaker, a Shiny app that displays 4 tabs of Leaflet maps. See package vignette for code.
#' @export
#' @importFrom shiny runApp
shiny_AtlasMaker <- function(
		app = c('demo1')
) {
	pkg_dir <- find.package('AtlasMaker')
	if(!app %in% list.dirs(pkg_dir, full.names = FALSE)) {
		stop('Invalid application name.')
	}
	app_dir <- paste0(pkg_dir, '/', app[1])
	shiny::runApp(appDir = app_dir)
}

Try the AtlasMaker package in your browser

Any scripts or data that you put into this service are public.

AtlasMaker documentation built on July 26, 2023, 5:32 p.m.