inst/app/ui.R

ui <- fluidPage(

  # App title ----
  titlePanel("Causal Emergence and Effective Information"),

  # Sidebar layout with input and output definitions ----
  sidebarLayout(

    # Sidebar panel for inputs ----
    sidebarPanel(
      fileInput(
        "file_graph", "Choose Graph File",
        multiple = FALSE,
        accept = c(
          "text/plain",
          "text/comma-separated-values,text/plain",
          ".csv",
          ".graphml"
        )
      ),
      tags$hr(),
      radioButtons(
        "graph_type",
        "Graph File Type",
        choices = c(
          EdgeList = "edgelist",
          GraphML  = "graphml"
        ),
        selected = "graphml"
      ),
      selectInput(
        inputId  = "graph",
        label    = "Choose example dataset",
        selected = "copy_copy",
        choices  = c("copy_copy", "and_and", "or_or")
      ),
    ),

    # Main panel for displaying outputs ----
    mainPanel(
      h1("Graph"),
      plotOutput(outputId = "graph"),
      h1("Summary"),
      verbatimTextOutput("ei"),
      verbatimTextOutput("ce"),
    )
  )
)

Try the einet package in your browser

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

einet documentation built on April 24, 2020, 1:06 a.m.