added .csv for Windows users

Without the ".csv" on Windows file selector does not filter for csv
files. This may be due to Excel. But the install base for Excel is
humongous so I propose to incorporate it.
This commit is contained in:
Dai Zhuo Jia
2013-10-19 17:13:08 +08:00
parent 318ccec6f0
commit c8642b3b68

View File

@@ -22,7 +22,7 @@ shinyUI(pageWithSidebar(
headerPanel("CSV Viewer"),
sidebarPanel(
fileInput('file1', 'Choose CSV File',
accept=c('text/csv', 'text/comma-separated-values,text/plain')),
accept=c('text/csv', 'text/comma-separated-values,text/plain', '.csv')),
tags$hr(),
checkboxInput('header', 'Header', TRUE),
radioButtons('sep', 'Separator',