Description Usage Arguments Details Value
View source: R/ch_write_delim.R
The list will contain:
1 | ch_write_delim(id, defaults = list(delim = ","))
|
id |
character, tag to prepend to the input and output id's |
defaults |
list, default value for delimiter |
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:
delim
shiny::selectInput
used to select the delimiter character
tz_display
shiny::selectInput used to select the timezone used to display
tz_display_modal
shinyBS::bsModal used for timezone help
tz_name
shiny::textInput used to name the file to be download
download
shiny::downloadButton used to launch the download
The list ui_view
will have members:
data
shiny::htmlOutput
showing the first few lines of the dataframe
text
shiny::htmlOutput
showing the first few lines of the text file
status
shiny::htmlOutput
showing the status of the download
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 input dataframe will be taken from 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.