You are currently browsing the monthly archive for March 2014.

We’re excited to introduce to you our new website for Shiny: shiny.rstudio.com!

shiny-rstudio-com

We’ve included articles on many Shiny-related topics, dozens of example applications, and an all-new tutorial for getting started.

Whether you’re a beginner or expert at Shiny, we hope that having these resources available in one place will help you find the information you need.

We’d also like to announce Shiny 0.9, now available on CRAN. This release includes many bug fixes and new features, including:

New application layout options

Until now, the vast majority of Shiny apps have used a sidebar-style layout. Shiny 0.9 introduces new layout features to:

  1. Make it easy to create custom page layouts using the Bootstrap grid system. See our new application layout guide or a live example.
  2. Provide navigation bars and lists for separating your application into different pages. See navbarPage and navlistPanel, and this example.
  3. Enhance tabsetPanel to allow pill-style tabs, and to let tabs be placed above, below, or to either side of tab content.
  4. Create floating panels and place them relative to the sides of the page, optionally making them draggable. See absolutePanel or this example.
  5. Use Bootstrap themes to easily modify the fonts and colors of your application. Example

You can see many of these features in action together in our reimplementation of the Washington Post’s interactive article on Super Zips.

Selectize.js integration

The JavaScript library selectize.js provides a much more flexible interface compared to the basic select input. It allows you to type and search in the options, use placeholders, control the number of options/items to show/select, and so on.

selectize

We have integrated selectize.js in shiny 0.9, and selectInput now creates selectize inputs by default. (You can revert back to plain select inputs by passing selectize=FALSE to selectInput.) For more advanced uses, we have included a new selectizeInput function that lets you pass options to selectize.

Please check out this example to see a subset of features of the selectize input. There is also an example comparing the select and selectize input.

Showcase mode

Shiny apps can now (optionally) run in a “showcase” mode in which the app’s R code can be automatically displayed within the app. Most of the Shiny example apps in our new gallery use showcase mode.

Showcase example

As you interact with the application, reactive expressions and outputs in server.R will light up as they execute. This can be helpful in visualizing the reactivity in your app.

See this article to learn more.

As always, you can install the latest release of Shiny by running this command at the R console:

install.packages("shiny")

The complete list of bug fixes and features is available in the NEWS file.

We hope you’ll find these new features helpful in exploring and understanding your data!

We’re very pleased to announce the release of httr 0.3. httr makes it
easy to work with modern web apis so that you can work with web data
almost as easily as local data. For example, this code shows how might
find the most recently asked question about R on stackoverflow:

# install.packages("httr")
library(httr)

# Find the most recent R questions on stackoverflow
r <- GET(
  "http://api.stackexchange.com",
  path = "questions",
  query = list(
    site = "stackoverflow.com",
    tagged = "r"
  )
)

# Check the request succeeded
stop_for_status(r)

# Automatically parse the json output
questions <- content(r)
questions$items[[1]]$title
#> [1] "Remove NAs from data frame without deleting entire rows/columns"

httr 0.3 recieved a major overhaul to OAuth support. OAuth is a modern
standard for authentication used when you want to allow a service (i.e R
package) access to your account on a website. This version of httr
provides an improved initial authentication experience and supports
caching so that you only need to authenticate once per project. A big
thanks goes to Craig Citro (Google) who contributed a lot of code and
ideas to make this possible.

httr 0.3 also includes many other bug fixes and minor improvements. You
can read about these in the github release notes.

dplyr 0.1.3 is now on CRAN. It fixes an incompatibility with the latest version of Rcpp, and a number of other bugs that were causing dplyr to crash R. See the full details in the release notes.

Follow

Get every new post delivered to your Inbox.

Join 12,249 other followers