mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-02 02:34:57 -05:00
29 lines
738 B
R
29 lines
738 B
R
library(shiny)
|
|
|
|
shinyUI(fluidPage(
|
|
titlePanel("Uploading Files"),
|
|
sidebarLayout(
|
|
sidebarPanel(
|
|
fileInput('file1', 'Choose CSV File',
|
|
accept=c('text/csv',
|
|
'text/comma-separated-values,text/plain',
|
|
'.csv')),
|
|
tags$hr(),
|
|
checkboxInput('header', 'Header', TRUE),
|
|
radioButtons('sep', 'Separator',
|
|
c(Comma=',',
|
|
Semicolon=';',
|
|
Tab='\t'),
|
|
'Comma'),
|
|
radioButtons('quote', 'Quote',
|
|
c(None='',
|
|
'Double Quote'='"',
|
|
'Single Quote'="'"),
|
|
'Double Quote')
|
|
),
|
|
mainPanel(
|
|
tableOutput('contents')
|
|
)
|
|
)
|
|
))
|