Description Usage Arguments Details Value
View source: R/ch_read_delim.R
The list will contain:
1 | ch_read_delim(id, defaults = list(delim = ",", decimal_mark = "."))
|
id |
character, tag to prepend to the input and output id's |
defaults |
list, default values for delimiter and decimal_mark |
ui_controller
shiny::taglist
of ui elements for the controller
ui_view
shing::taglist
of ui elements for the view
server_model
function with reactive code
The list returned by this function has to be available to both the ui and the server.
If not using the shinyApp
formulation, perhaps global.R
could be useful.
The list ui_controller
will have members:
file
shiny::fileInput
used to choose the file to upload
delim
shiny::selectInput
used to select the delimiter character
decimal_mark
shiny::selectInput used to select the decimal-mark character
tz_parse
shiny::selectInput used to select the timezone used to parse
tz_parse_modal
shinyBS::bsModal used for timezone help
tz_display
shiny::selectInput used to select the timezone to display
tz_display_modal
shinyBS::bsModal used for timezone help
Note that the 'tz' input will serve as an argument to 'readr::locale'; its meaning depends on the context of what it's parsing. See the readr documentation for more details.
The list ui_view
will have members:
text
shiny::htmlOutput
showing a preview of the first few lines of the text file
data
shiny::htmlOutput
showing a glimpse of the parsed dataframe
The function server_model()
will be called from your server function.
Its arguments are:
input, output, session
input, output, session values passed from your server function
rctval_data, item_data
shiny::reactiveValues
object, character string.
The parsed dataframe will be placed in rctval_data[[item_data]]
.
list containing ui_controller
, ui_view
, and server_model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.