Casestudies: webapplicaties bouwen met Shiny in R
Dean Attali
Shiny Consultant
data-argument is tekst, gebruik je textInput()?

textAreaInput() lijkt erop, maar heeft meerdere rijen
textAreaInput(inputId, label, value, rows, ...)

fileInput(inputId, label, ...)


?fileInput() voor meer optiesinput$<inputId> is tekstinput$<inputId> is een getalinput$<inputId> is GEEN bestandBestandsinvoer: input$<inputId> is een data frame met 1 rij per bestand
name, size, type, datapath name size type datapath
1 myfile.txt 6000 text/plain C:/path/to/temporary/file/0.txt
datapath is het belangrijkst: pad naar het bestandGeselecteerd bestand lezen:
input$<inputId>$datapath
Tekstbestand:
readLines(input$<inputId>$datapath)
Casestudies: webapplicaties bouwen met Shiny in R