Case Studies: Building Web Applications with Shiny in R
Dean Attali
Shiny Consultant
data
argument is text, use textInput()
?
textAreaInput()
similar, but provides multiple rows
textAreaInput(inputId, label, value, rows, ...)
fileInput(inputId, label, ...)
?fileInput()
for more optionsinput$<inputId>
is textinput$<inputId>
is a numberinput$<inputId>
is NOT a fileFile inputs: input$<inputId>
is dataframe with 1 row per file
name
, size
, type
, datapath
name size type datapath
1 myfile.txt 6000 text/plain C:/path/to/temporary/file/0.txt
datapath
is most important: path of fileRead selected file:
input$<inputId>$datapath
Text file:
readLines(input$<inputId>$datapath)
Case Studies: Building Web Applications with Shiny in R