View source: R/read_uploaded_file.R
| read_uploaded_file | R Documentation |
Reads a file uploaded via shiny::fileInput() (Phase
11, textcleaner_shiny()'s own upload step). Shiny stores an
uploaded file at a temporary path (datapath) that does not
necessarily carry the original file's extension, but read_data
dispatches purely by sniffing the path's own extension – this function
bridges the two by renaming/copying datapath to one ending in the
real, original extension (from filename, the name the browser
reported) before handing off.
read_uploaded_file(datapath, filename, header = TRUE, sep = ",")
datapath |
Character.
The temporary file path |
filename |
Character.
The original file name the browser reported
( |
header |
Boolean.
Passed through to |
sep |
Character.
Passed through to |
The data read from the uploaded file (a data frame for every
supported extension except .Rdata, an unmodified round-trip)
Alexander Christensen <alexpaulchristensen@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.