ui.R 906 Bytes
Newer Older
David Trudgian's avatar
David Trudgian committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
library(shiny)
library(shinyFiles)


shinyUI(fluidPage(

  verticalLayout(

    # Application title
    titlePanel("Astrocyte Example"),

    wellPanel(

        helpText("This is a minimal example, demonstrating how
        a Shiny visualization application can access the output of a workflow.
        Here we provide a file browser using the shinyFiles package. Real
        Astrocyte vizapps would provide custom methods to access and visualize
        output."),

        helpText("The workflow output is in the directory set in the
        outputDir environment variable. this can be retrieved in R with the
        command Sys.getenv('outputDir')"),

        # A simple file browser within the workflow output directory
        # See https://github.com/thomasp85/shinyFiles
        shinyFilesButton('files', label='Browse workflow output', title='Please select a file', multiple=FALSE)

    )
  )
))