Études de cas : créer des applications Web avec Shiny en R
Dean Attali
Shiny Consultant
L'argument data est du texte, utiliser textInput() ?

textAreaInput() est semblable, mais avec plusieurs lignes
textAreaInput(inputId, label, value, rows, ...)

fileInput(inputId, label, ...)


?fileInput() pour plus d'optionsinput$<inputId> est du texteinput$<inputId> est un nombreinput$<inputId> n'est PAS un fichierEntrées de fichier : input$<inputId> est un dataframe avec 1 ligne par fichier
name, size, type, datapath name size type datapath
1 myfile.txt 6000 text/plain C:/path/to/temporary/file/0.txt
datapath est la plus importante : chemin du fichierLire le fichier sélectionné :
input$<inputId>$datapath
Fichier texte :
readLines(input$<inputId>$datapath)
Études de cas : créer des applications Web avec Shiny en R