Shiny

Shiny App checkboxInput and conditionalPanel

放肆的年华 提交于 2020-06-24 12:03:51
问题 I am new to ShinyApp. I want to use a checkboxInput() with conditionalPanel, so when it's checked, the options for Type will show up (then users can select a Type from "BEER", "REFRESHMENT", "SPIRITS", "WINE"). If it's not checked, the options for Type will not show up. Below are my code, but when the Type options didn't show no matter I check the box or not. I guess I should write something in the server function? I really don't know. Thank you for your help. ui <- fluidPage( titlePanel("BC

R Shiny map search input box

假装没事ソ 提交于 2020-06-24 10:24:32
问题 In google maps, the search input box auto completes addresses as a user types. Is there a way to do this in R Shiny with access to the autocomplete value in order to use with a mapping package? There is a javascript method here. I've tried to use this method in R Shiny in the code below. SymbolixAU pointed out using google_map( search_box = TRUE ) which is a simple solution. Unfortunately it doesn't work in my code and also because I would like the search box to be separate from the map. The

R Shiny map search input box

痴心易碎 提交于 2020-06-24 10:24:27
问题 In google maps, the search input box auto completes addresses as a user types. Is there a way to do this in R Shiny with access to the autocomplete value in order to use with a mapping package? There is a javascript method here. I've tried to use this method in R Shiny in the code below. SymbolixAU pointed out using google_map( search_box = TRUE ) which is a simple solution. Unfortunately it doesn't work in my code and also because I would like the search box to be separate from the map. The

R Shiny map search input box

老子叫甜甜 提交于 2020-06-24 10:24:03
问题 In google maps, the search input box auto completes addresses as a user types. Is there a way to do this in R Shiny with access to the autocomplete value in order to use with a mapping package? There is a javascript method here. I've tried to use this method in R Shiny in the code below. SymbolixAU pointed out using google_map( search_box = TRUE ) which is a simple solution. Unfortunately it doesn't work in my code and also because I would like the search box to be separate from the map. The

Security in an R Shiny Application

爱⌒轻易说出口 提交于 2020-06-23 21:13:26
问题 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 ? 回答1: This might be a little late but I am going to answer anyways. If you have already got a solution, can you please share it with us? My primary aim was very simple. I had a working version of shiny app on my laptop. I used to run it as mentioned below, all the while

Need to build dependency for 3 InsertUI fields coming from Excel sheet in RShiny

半世苍凉 提交于 2020-06-23 14:16:34
问题 I am pretty new to R and was trying to build a small utility just for my learning. I have 3 fields in my excel workbook named: Country State Cities All these fields should come as a drop down in UI. What I want to achieve is: 'when I make a selection for Country, a new drop down for State should get created with a list of States that falls under the Country selected. And based on the state selected the underlying cities should get populated in the drop down' I found a few examples online, but

Need to build dependency for 3 InsertUI fields coming from Excel sheet in RShiny

非 Y 不嫁゛ 提交于 2020-06-23 14:13:28
问题 I am pretty new to R and was trying to build a small utility just for my learning. I have 3 fields in my excel workbook named: Country State Cities All these fields should come as a drop down in UI. What I want to achieve is: 'when I make a selection for Country, a new drop down for State should get created with a list of States that falls under the Country selected. And based on the state selected the underlying cities should get populated in the drop down' I found a few examples online, but

Insert Figure in shiny navbarPage

痞子三分冷 提交于 2020-06-23 12:38:07
问题 Friends could help me insert a figure into my shiny navbarPage. I would like to remove the written word "Simulation" in my navbarPage and insert the attached figure instead. Is this possible to do in shiny? any help is appreciated. The executable code is below. library(shiny) library(shinytables) ui <- bootstrapPage( navbarPage(theme = shinytheme("flatly"), collapsible = TRUE, "Simulation", sidebarLayout( sidebarPanel( sliderInput("bins", "Number of bins:", min = 1, max = 50, value = 30) ),

Link excel database with downloadLink in Shiny

折月煮酒 提交于 2020-06-23 12:19:42
问题 Could you help me link an excel database to my downloadLink? Therefore, whenever I click on "Download the standard base" in shiny, an excel database is automatically downloaded. I made a minimal example below just to show the idea. I don't know how to adjust it on my server for this to work correctly. Thank you! library(shiny) ui <- fluidPage( titlePanel("Old Faithful Geyser Data"), sidebarLayout( sidebarPanel( sliderInput("bins", "Number of bins:", min = 1, max = 50, value = 30),

How to get data without index number in shiny

≯℡__Kan透↙ 提交于 2020-06-23 10:46:28
问题 I am getting the value [1] 0.7976529 by using verbatimTextOutput("oaccura") on ui.r and output$oaccura<-renderPrint({a3}) on server.r but i want 0.7976529. How to get data and add dynamic css. 回答1: Maybe you can use renderText instead library(shiny) a3 <- 0.7976529 ui <- fluidPage(verbatimTextOutput("oaccura")) server <- function(input, output, session) { output$oaccura <- renderText({a3}) } runApp(list(ui = ui, server = server)) 来源: https://stackoverflow.com/questions/40627799/how-to-get