Shiny

Knit word document from Shiny App with template.docx

时间秒杀一切 提交于 2020-08-26 10:00:25
问题 I'm trying to knit a word document from a shiny app using a template.docx file. I get the following error message: pandoc.exe: template.docx: openBinaryFile: does not exist (No such file or directory) The following 3 files were all currently located in the same directory. app.R: library(shiny) library(rmarkdown) ui <- fluidPage( titlePanel("Word template"), sidebarLayout( sidebarPanel(), mainPanel( downloadButton("download", "Download Report") ) ) ) server <- function(input, output) { output

R Shiny group buttons with individual hover dropdown selection

倖福魔咒の 提交于 2020-08-26 03:22:28
问题 I wish to make radioGroupbuttons show a dropdown menu for each member of the group buttons upon hover. The left click functionality of the button is already utilized for another purpose. I have the following code using a bspopover for showing text instead of the dropdown upon hover. The bspopover is not working correctly even for the plain text here. Any suggestions to fix this would be appreciated. The solution I need for hover dropdown for each button A B C could be different than what I

R Shiny group buttons with individual hover dropdown selection

不打扰是莪最后的温柔 提交于 2020-08-26 03:22:27
问题 I wish to make radioGroupbuttons show a dropdown menu for each member of the group buttons upon hover. The left click functionality of the button is already utilized for another purpose. I have the following code using a bspopover for showing text instead of the dropdown upon hover. The bspopover is not working correctly even for the plain text here. Any suggestions to fix this would be appreciated. The solution I need for hover dropdown for each button A B C could be different than what I

R Shiny group buttons with individual hover dropdown selection

烈酒焚心 提交于 2020-08-26 03:22:13
问题 I wish to make radioGroupbuttons show a dropdown menu for each member of the group buttons upon hover. The left click functionality of the button is already utilized for another purpose. I have the following code using a bspopover for showing text instead of the dropdown upon hover. The bspopover is not working correctly even for the plain text here. Any suggestions to fix this would be appreciated. The solution I need for hover dropdown for each button A B C could be different than what I

Shiny: How to detect which accordion elements is selected?

牧云@^-^@ 提交于 2020-08-20 10:37:33
问题 I have an R Shiny where server.R outputs a large number of dynamically generated UI objects. Rather than process hundreds of objects in input to process, I thought I could use bs_accordion() from the bsplus package. I expected bs_accordion() to report the state of the elements it controls back to server.R via the input object. My plan had been to dynamically generate the UI elements for just the currently selected item using renderUI() . Unfortunately as far as I can tell, nothing in the

Shiny: How to detect which accordion elements is selected?

人盡茶涼 提交于 2020-08-20 10:36:35
问题 I have an R Shiny where server.R outputs a large number of dynamically generated UI objects. Rather than process hundreds of objects in input to process, I thought I could use bs_accordion() from the bsplus package. I expected bs_accordion() to report the state of the elements it controls back to server.R via the input object. My plan had been to dynamically generate the UI elements for just the currently selected item using renderUI() . Unfortunately as far as I can tell, nothing in the

r - tryCatch error handling within Shiny

孤街醉人 提交于 2020-08-19 06:49:12
问题 Background I am using a shiny app to cut and table some data. The dataset is included in the shiny code below, but the head is: > head(df_in) Report_Year Position Target 1 2014 CEO 29.27644 2 2014 CEO 29.27644 3 2014 CFO 17.56586 4 2014 CE 17.56586 5 2014 COO 17.56586 6 2014 CEO 46.84231 I am using the following statement to cut and table the data df <- df_in %>% filter(Report_Year == input$v_year, Position == "CEO") %>% select(Target) %>% filter(!is.na(Target)) %>% mutate(bins = cut(Target,

How to create datatable with complex header in R Shiny?

我只是一个虾纸丫 提交于 2020-08-16 07:57:08
问题 I have a datatable in R Shiny and would like to have headers that span multiple columns like below: How can this be achieved in R Shiny? 回答1: Theres already example http://rstudio.github.io/DT/ library(DT) sketch = htmltools::withTags(table( class = 'display', thead( tr( th(rowspan = 2, 'Species'), th(colspan = 2, 'Sepal'), th(colspan = 2, 'Petal') ), tr( lapply(rep(c('Length', 'Width'), 2), th) ) ) )) datatable(iris[1:20, c(5, 1:4)], container = sketch, rownames = FALSE) 回答2: Have a look at

Issue involving map generation in shiny

☆樱花仙子☆ 提交于 2020-08-14 02:45:40
问题 Friends could help me resolve the following issue: I am inserting three executable codes below, the first generates a map using sftnetworks package, showing the route between two locations. In this case, the two locations to generate the map were defined: from = c(df_spec_clust[1, c("Longitude")], df_spec_clust[1, c("Latitude")]) and to = c (df_spec_prop [4, c ("Longitude")], df_spec_prop [4, c ("Latitude")])] . In the second, I would like to generate the map in Shiny format, but without

Issue involving map generation in shiny

南笙酒味 提交于 2020-08-14 02:45:39
问题 Friends could help me resolve the following issue: I am inserting three executable codes below, the first generates a map using sftnetworks package, showing the route between two locations. In this case, the two locations to generate the map were defined: from = c(df_spec_clust[1, c("Longitude")], df_spec_clust[1, c("Latitude")]) and to = c (df_spec_prop [4, c ("Longitude")], df_spec_prop [4, c ("Latitude")])] . In the second, I would like to generate the map in Shiny format, but without