mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
fix documentation (worng/misleading code example)
This commit is contained in:
committed by
Winston Chang
parent
cf21e987f2
commit
d112ac7eef
3
NEWS.md
3
NEWS.md
@@ -12,6 +12,9 @@ shiny 1.0.1.9000
|
||||
* Fixed [#1649](https://github.com/rstudio/shiny/issues/1649): allow the `choices` argument in `checkboxGroupInput()` to be `NULL` (or `c()`) to keep backward compatibility with Shiny < 1.0.1. This will result in the same thing as providing `choices = character(0)`. ([#1652](https://github.com/rstudio/shiny/pull/1652))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fixed [#1653](https://github.com/rstudio/shiny/issues/1653): wrong code example in documentation. ([#1658](https://github.com/rstudio/shiny/pull/1658))
|
||||
|
||||
### Library updates
|
||||
|
||||
|
||||
|
||||
@@ -1618,7 +1618,7 @@ reactivePoll <- function(intervalMillis, session, checkFunc, valueFunc) {
|
||||
#' # Cross-session reactive file reader. In this example, all sessions share
|
||||
#' # the same reader, so read.csv only gets executed once no matter how many
|
||||
#' # user sessions are connected.
|
||||
#' fileData <- reactiveFileReader(1000, session, 'data.csv', read.csv)
|
||||
#' fileData <- reactiveFileReader(1000, NULL, 'data.csv', read.csv)
|
||||
#' function(input, output, session) {
|
||||
#' output$data <- renderTable({
|
||||
#' fileData()
|
||||
|
||||
@@ -58,7 +58,7 @@ function(input, output, session) {
|
||||
# Cross-session reactive file reader. In this example, all sessions share
|
||||
# the same reader, so read.csv only gets executed once no matter how many
|
||||
# user sessions are connected.
|
||||
fileData <- reactiveFileReader(1000, session, 'data.csv', read.csv)
|
||||
fileData <- reactiveFileReader(1000, NULL, 'data.csv', read.csv)
|
||||
function(input, output, session) {
|
||||
output$data <- renderTable({
|
||||
fileData()
|
||||
|
||||
Reference in New Issue
Block a user