Questions tagged [shiny]

Shiny is an R package that makes it easy to build interactive web applications using only R. For the Python Shiny package, use the tag [py-shiny] instead.

Shiny makes it easy for R developers to turn their analyses into interactive web applications that anyone can use, without requiring any prior HTML, CSS or JavaScript knowledge. It enables the developer to let users choose input parameters using user friendly controls like sliders, drop-down menus, and text fields, which will then influence any number of outputs like plots, tables, and summaries.

Repositories

Other resources

Free books on Shiny:

Related tags

28422 questions
41
votes
3 answers

Show that Shiny is busy (or loading) when changing tab panels

(Code follows after problem description) I am working on making a web app with Shiny, and some of the R commands that I am executing take minutes to complete. I found that I need to provide the user with some indication that Shiny is working, or…
ialm
  • 8,510
  • 4
  • 36
  • 48
40
votes
2 answers

Create URL hyperlink in R Shiny?

My code: library(shiny) runApp( list(ui = fluidPage( uiOutput("tab") ), server = function(input, output, session){ url <- a("Google Homepage", href="https://www.google.com/") output$tab <- renderUI({ paste("URL link:",…
warship
  • 2,924
  • 6
  • 39
  • 65
39
votes
3 answers

developing shiny app as a package and deploying it to shiny server

I am developing a shiny app and since I wanted to use automated testing and documentation of the function, I started to develop the interface within a package (as recommended here). I develop this shiny app within RStudio and I have a server.R file…
drmariod
  • 11,106
  • 16
  • 64
  • 110
39
votes
2 answers

Control the height in fluidRow in R shiny

I am trying to build a layout for a shiny app. I have been looking at the application layout guide and did some google search but it seems the layout system in shiny has its limits. You can create something like this: fluidPage( fluidRow( …
skypriority
  • 393
  • 1
  • 3
  • 5
39
votes
7 answers

Security in an R Shiny Application

I want to publish an R Shiny web application (http://www.rstudio.com/shiny/) on the web, but I want to password protect it so that only people with credentials can view what I have published. What is the best way to do this ?
Nicholas Hamilton
  • 10,044
  • 6
  • 57
  • 88
39
votes
8 answers

possible to run RShiny app without opening an R environment?

Currently I have a R shiny app, to run it I open up RStudio and execute setwd("C:/Users/Me/Desktop/R/ShinyProject2") library(shiny) ...... runApp() From a R script located in my directory. I am sending the app for review purposes to a co-worker who…
Green Demon
  • 4,078
  • 6
  • 24
  • 32
38
votes
4 answers

Opening Shiny App directly in the default browser

Normally the shiny app opens through the inbuilt browser within R-Studio. Is it possible to open the app directly in the web browser, say Google Chrome, without going through the R-Studio.
Apricot
  • 2,925
  • 5
  • 42
  • 88
38
votes
2 answers

Fuzzy search box widget with `Shiny` in R?

Has anyone created or seen a Shiny app featuring search box widget giving contextual suggestions as you type, based on fuzzy matching? Bloomberg terminal uses it, Google uses it. One of the possible underlying technologies is called…
Daniel Krizian
  • 4,586
  • 4
  • 38
  • 75
38
votes
2 answers

How to use tabPanel as input in R Shiny?

Is it possible to perform an action if the user clicks into a particular tabPanel? For instance, if the user clicks into tabPanel("A", ...) then display a popup saying You are viewing tab "A".
mchen
  • 9,808
  • 17
  • 72
  • 125
37
votes
3 answers

How can put multiple plots side-by-side in shiny r?

In mainpanel, I try to handle this problem via fluidrow. However, one of my plot is optional to be displayed or not by users. When user clicks the button, the second plot appears below the first plot. fluidRow( column(2, align="right", …
can.u
  • 515
  • 1
  • 4
  • 12
37
votes
3 answers

R- Shiny webserver on a local server

I have a windows machine with IIS and I can see the IIS welcome page on http://myname/. I have recently started using Shiny through its own server and I can see shiny apps on http://127.0.0.1:port Now my question is how can I allow others to see my…
Mark
  • 10,754
  • 20
  • 60
  • 81
37
votes
5 answers

Include a javascript file in Shiny app

I need to include a js library into my Shiny app. Currently I use includeHTML to include the script directly into html codes. e.g. includeHTML('URL.js') The browser will show "Not Found" when I try to browser the js file if I use tags$script,…
Bangyou
  • 9,462
  • 16
  • 62
  • 94
36
votes
2 answers

Shiny: How to make reactive value initialize with default value

Consider the following actionButton demo: http://shiny.rstudio.com/gallery/actionbutton-demo.html server.R: shinyServer(function(input, output) { # builds a reactive expression that only invalidates # when the value of input$goButton becomes…
Eric
  • 829
  • 1
  • 8
  • 15
36
votes
1 answer

Producing PDF report using knitr (LaTeX) from Shiny application

I am trying to create a shiny application that will allow you to download a nicely formatted PDF report, according to user-defined sub-analyses. I found this gist containing a minimal example, which works just fine. However, when I tried to add a…
Jonny
  • 2,703
  • 2
  • 27
  • 35
36
votes
2 answers

How do i get the web browser password store to remember R/Shiny passwords?

The problem I have a shiny application that requires user to login to access the underlying dataset. The username and password are collected from form fields and submitted via a RESTful API on another server to get an access token which is used in…
Alex Brown
  • 41,819
  • 10
  • 94
  • 108