R/createMgr.R

Defines functions createMgr

Documented in createMgr

#' Create a data manager for epiviz app
#' 
#' @param server An object of class \code{\link{EpivizServer}}
#' @return An object of class \code{\link{EpivizDataMgr}}
#' @export
#' 
#' @examples
#' server <- epivizrServer::createServer(port=7123L)
#' data_mgr <- epivizrData::createMgr(server)
#'
createMgr <- function(server = server) {
  if (!is(server, "EpivizServer")) {
    stop("'server' must be of class 'EpivizServer', see epivizrServer package")
  }
  EpivizDataMgr$new(server=server)
}

Try the epivizrData package in your browser

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

epivizrData documentation built on Nov. 8, 2020, 7:36 p.m.