Shiny

shiny:change tab when click on image

无人久伴 提交于 2020-02-27 12:35:27
问题 I'm building a Shiny application and some of my users (not very familiar with this kind of layout) don't understand that the application works with tabs and they just don't see where to go from the Homepage. That's why I want to display a big infography on the main page, and when they click on it, it automatically activates the second tab. I know how to add a link to an image: tags(a(img(src="image.png"), href="link.com")) And I know how to programmatically select a different tab:

Using reactiveFileReader function in Shiny

馋奶兔 提交于 2020-02-27 07:47:41
问题 I would like your help to access the result elements that the reactiveFileReader function offers me, in which case the result is fileData () The server code is this: server <- function(input, output,session) { fileData <- reactiveFileReader(1000,session,filePath = 'ddeLink.xlsm', readFunc = read_excel) output$data <- renderTable({ fileData() }) } The excel spreadsheet linkdde.xslm every five minutes updates. It is composed of 2 columns where only column b is updated. The excel file bellow:

Using reactiveFileReader function in Shiny

旧城冷巷雨未停 提交于 2020-02-27 07:46:22
问题 I would like your help to access the result elements that the reactiveFileReader function offers me, in which case the result is fileData () The server code is this: server <- function(input, output,session) { fileData <- reactiveFileReader(1000,session,filePath = 'ddeLink.xlsm', readFunc = read_excel) output$data <- renderTable({ fileData() }) } The excel spreadsheet linkdde.xslm every five minutes updates. It is composed of 2 columns where only column b is updated. The excel file bellow:

RShiny - How to share app within network

帅比萌擦擦* 提交于 2020-02-27 06:41:32
问题 I created an R Shiny application that I'd like to share with my co-workers within my network. I tried hosting the app on my computer so that other users from the network could access it and use it with their data files. I tried: runApp("appname",host="0.0.0.0",port=3986) And also: runApp("appname",host="DNSMachinename") The latter attempt resulted in the following error: While my colleagues are able to acceess the app, it doesn't really run like it does on my machine. Thanks for the help. 回答1

RShiny - How to share app within network

妖精的绣舞 提交于 2020-02-27 06:41:06
问题 I created an R Shiny application that I'd like to share with my co-workers within my network. I tried hosting the app on my computer so that other users from the network could access it and use it with their data files. I tried: runApp("appname",host="0.0.0.0",port=3986) And also: runApp("appname",host="DNSMachinename") The latter attempt resulted in the following error: While my colleagues are able to acceess the app, it doesn't really run like it does on my machine. Thanks for the help. 回答1

Change plotly chart y variable based on selectInput

孤者浪人 提交于 2020-02-26 09:09:43
问题 I'm creating a simple line chart which renders correctly in Shiny. I've now added a selectInput with the names of 2 different measures, written as they appear in my data set. I'd like my y variable to change accordingly. p <- plot_ly(data = LineChartData(), x= Calendar.Month, y = input$Measure, type = "line", group = Calendar.Year, col = Calendar.Year) Unfortunately, the chart renders with just one point. It's not taking input$Measure and finding that field in my data set. I know when using

how to break the key value and stored in two different variable to use them as parameter(stored_procedure) in ms SQL server in r and shiny

前提是你 提交于 2020-02-26 04:14:40
问题 library(shinyjs) library(plotly) library(shinydashboard) library(shinycssloaders) library(shiny) library(dplyr) library(DT) library(tidyr) library(shinycustomloader) library(tibble) library(datapasta) COL = c("#293a80","#39375b","#6915cf","#4b8e8d","#d55252","#293462","#940a37","#f54291","#f0134d","#b22222","#3c4245","#5d1451","#3c3d47") ui<- fluidPage( fluidRow(column(width=12, withLoader(plotlyOutput("plott1"),type = "html",loader = "loader4"))), fluidRow(column(width=12, withLoader

shinyapps.io crashes when getting point coordinates of a dygraph

孤街醉人 提交于 2020-02-26 00:54:27
问题 I'm trying to build an app, which is doing something similar to this post. I want point coordinates to be copied to a clipboard by every click. I've just copied it as an example with a small modification in observeEvent . library(shiny) library(dygraphs) library(clipr) ui = fluidPage( mainPanel( dygraphOutput("dygraph"), br(), textOutput("clicked", inline = TRUE) ) ) server = function(input, output) { output$dygraph <- renderDygraph({ dygraph(ldeaths) }) output$clicked <- renderText({

shinyapps.io crashes when getting point coordinates of a dygraph

丶灬走出姿态 提交于 2020-02-26 00:53:09
问题 I'm trying to build an app, which is doing something similar to this post. I want point coordinates to be copied to a clipboard by every click. I've just copied it as an example with a small modification in observeEvent . library(shiny) library(dygraphs) library(clipr) ui = fluidPage( mainPanel( dygraphOutput("dygraph"), br(), textOutput("clicked", inline = TRUE) ) ) server = function(input, output) { output$dygraph <- renderDygraph({ dygraph(ldeaths) }) output$clicked <- renderText({

Creating nested list in R

时间秒杀一切 提交于 2020-02-25 04:15:52
问题 I have a data frame like below: df <- data.frame(child = c('item3-1-1','item3-1-2','item3-2','item3-1','item2-1','item2-2','item1'),parent = c('item3-1','item3-1','item3','item3','item2','item2','')) I want to convert this dataframe in below format: choices <- list( list(id = 1, title = "item1"), list(id = 2, title = "item2", subs = list( list(id = 21, title = "item2-1"), list(id = 22, title = "item2-2") ) ), list(id = 3, title = "item3", subs = list( list(id = 31, title = "item3-1",