R/tsapp.R

Defines functions tsapp

Documented in tsapp

#' shiny app for appraisal of simple time-series models for COVID-19 incidence trajectories
#' @export
tsapp = function() {
 od = getwd()
 on.exit(setwd(od))
 uif = system.file("tsapp/ui.R", package="sars2death")
 servf = system.file("tsapp/server.R", package="sars2death")
 td = tempdir()
 setwd(td)
 file.copy(uif, ".", overwrite=TRUE)
 file.copy(servf, ".", overwrite=TRUE)
 shiny::runApp()
}
vjcitn/sars2death documentation built on Jan. 1, 2021, 12:41 p.m.