Shiny 0.10.2
Shiny v0.10.2 has been released to CRAN. To install it:
install.packages('shiny')
This version of Shiny requires R 3.0.0 or higher (note the current version of R is 3.1.1). R 2.15.x is no longer supported.
Here are the most prominent changes:
File uploading via fileInput()
now works for Internet Explorer 8 and 9. Note, however, that IE 8/9 do not support multiple files from a single file input. If you need to upload multiple files, you must use one file input for each file. Unlike in modern web browsers, no progress bar will display when uploading files in IE 8/9.
Shiny now supports single-file applications: instead of needing two separate files, server.R
and ui.R
, you can now create an application with single file named app.R
. This also makes it easier to distribute example Shiny code, because you can run an entire app by simply copying and pasting the code for a single-file app into the R console. Here’s a simple example of a single-file app:
## app.R
server <- function(input, output) {
output$distPlot <- renderPlot({
hist(rnorm(input$obs), col = 'darkgray', border = 'white')
})
}
ui <- shinyUI(fluidPage(
sidebarLayout(
sidebarPanel(
sliderInput("obs", "Number of observations:",
min = 10, max = 500, value = 100)
),
mainPanel(plotOutput("distPlot"))
)
))
shinyApp(ui = ui, server = server)
See the single-file app article for more.
Read the progress bar article for more.
aLengthMenu
has been renamed to lengthMenu
. Please read the article on DataTables on the Shiny website for more information about updating Shiny apps that use DataTables 1.9.4.In addition to the changes listed above, there are some smaller updates:
Searching in DataTables is case-insensitive and the search strings are not treated as regular expressions by default now. If you want case-sensitive searching or regular expressions, you can use the configuration options search$caseInsensitive
and search$regex
, e.g. renderDataTable(..., options = list(search = list(caseInsensitve = FALSE, regex = TRUE)))
.
Shiny has switched from reference classes to R6.
Reactive log performance has been greatly improved.
Exported createWebDependency
. It takes an htmltools::htmlDependency
object and makes it available over Shiny’s built-in web server.
Custom output bindings can now render htmltools::htmlDependency
objects at runtime using Shiny.renderDependencies()
.
Please read the NEWS file for a complete list of changes, and let us know if you have any comments or questions.