R/shinyTANDEM.R

Defines functions shinyTANDEM

Documented in shinyTANDEM

shinyTANDEM <- function(dataset=NULL, port=8100,...) {
  options(shiny.maxRequestSize=1024^3) #allows uploading 1Gb file.
  addResourcePath(prefix="www", directoryPath=system.file("extdata/www/", package="shinyTANDEM"))
  
  if( !is.null(dataset)) {
    if (! is(dataset, "rTResult") ) {
      stop("The dataset object must be a rTANDEM result object of class='rTResult'.")
    }
  }

  #redefine the env of shinyTandemServer to the calling environment so that
  #shinyTandemServer() has access to the 'dataset' object.
  environment(shinyTandemServer) <- environment() 

  app <- list(
    ui= shinyUI(),
    serverFunct=shinyTandemServer,
    port=port)
    
  runApp(app)
}

Try the shinyTANDEM package in your browser

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

shinyTANDEM documentation built on Nov. 8, 2020, 8:20 p.m.