flexdashboard

Flexdashboard - hidden navbar tab using reactive values

﹥>﹥吖頭↗ 提交于 2019-12-13 16:16:34
问题 I can hide a navbar page using the static value of show_hide but I cannot figure out how to do it with the reactive value r_show_hide() . I have also tried using isolate(ifelse...) and then r_show_hide (no parentheses) as well as reactiveVal() to no avail. There is also an extraneous "> that shows up. Any help would be appreciated. Update: I created an issue https://github.com/rstudio/flexdashboard/issues/229 --- title: "-" output: flexdashboard::flex_dashboard runtime: shiny --- ```{r setup,

Append a reactive data frame in shiny R

老子叫甜甜 提交于 2019-12-13 10:18:48
问题 I have a code something like this: for( #loop starts .... temp_data_frame <- reactive(d_frame2()[0,]) #only for if i = 1 temp_data_frame <- reactive(rbind(temp_data_frame(), d_frame2())) )#for loop ends subset_dataset <-eventReactive(input$go, {temp_data_frame()}) renderDataTable( subset_dataset(), options = list(pageLength = 15)) In d_frame2, I am getting new data each time loop is run. I am creating another temp_data_frame with the same column name as d_frame2, so that appending will be

Modify Flexdashboard CSS in R

夙愿已清 提交于 2019-12-13 04:09:18
问题 I am using the flexdashboard Package with Rmarkdown and would like to modify the dimensions of headers, location of borders, colors, etc. that result in the webpage created by Rstudio. There are many CSS files associated with flex dashboard and Rmarkdown. Can someone please inform me what CSS files should be modified for this purpose, and where these files are located in the R or Rstudio directories? 回答1: By modifying a CSS theme (we chose to modify Lumen ) in a flexdashboard subdirectory my

R FlexDashboard ggiraph chart not showing on second page of dashboard when using IE 11

橙三吉。 提交于 2019-12-12 04:31:14
问题 I have a multi-page R FlexdashBoard and I am trying to use ggiraph to create some interactive charts. They show up fine on the first page of the dashboard, however on the second page the SVG graphics do not show up until I hit refresh then the charts on the first page disappear. Also the text in the SVG graphics seems to only display intermittently. I only have this error in Internet Explorer - everything works fine in Chrome. The following code should recreate this error. Any help would be

Deploy Shiny app with Flexdashboard

可紊 提交于 2019-12-12 04:26:15
问题 I know how to deploy a shiny app using http://www.shinyproxy.io/. Basically I just need server.R and ui.R. Then using docker it's a pretty easy job. However, when using flexdashboard, I only have the .rmd file. How can I implement this deploy now? 回答1: This is actually supported out of the box by ShinyProxy. You just need to add yourfile.Rmd file in the docker image (i.e. add the relevant commands in your Dockerfile), and then use the docker-cmd: ["R", "-e rmarkdown::run('/path/to/yourFile

How to do nested selections selectInput() in RMarkdown with Shiny?

ⅰ亾dé卋堺 提交于 2019-12-11 17:39:48
问题 In a snippet of code below from my RMarkdown \ flexdashboard code with shiny , I need to modify the choices for the second selectInput() function, based on the selection made at the first selectInput() function. selectInput('theme', 'Select theme:', choices = c(dtThemes$Theme %>% unique())) selectInput('question', 'Select Question:', choices = c(dtQuestions$Question %>% unique())) # This works #choices = strQuestions) # This does not work strQuestions <- reactive({ nQuestions <- dtThemes

flexdashboard and shiny pdf report

Deadly 提交于 2019-12-11 01:35:22
问题 I'm new on shiny and flexdashboard.With flexdashboard I've written a .Rmd file to make a nice shiny application (I'm just a statistician). I want to export some calculations (by a download button)in a report with a pdf file. In shiny examples, I need again to create another Rmd file, as an example of report.Rmd. I can open my application in the browser, and i'm successful to download a pdf file. But it's not working online (with shinyapps.io). I have two files with .rmd extension, and another

Create reactive selectInput - flexdashboard with Shiny

北战南征 提交于 2019-12-10 12:11:45
问题 I'm trying to make a reactive selectInput using Shiny in a flexdashboard document. My first selectInput selects the type of Zone in a Marine Park. selectInput("Zone", label = "Marine Park Zoning:", choices = c("All", levels(EoTR$MarineParkZone)), selected = "All") Then I use this input to create a reactive data frame with only the Zones selected in step 1. zone.choices = reactive({ if (input$Zone=="All"){ select(EoTR, ReefName, MarineParkZone, MarineParkMgmtSection) }else{ select(EoTR,

Filter two tables with crosstalk

耗尽温柔 提交于 2019-12-09 07:13:15
问题 I am creating a Flexdashboard in R. I want the dashboard to contains both a table and a series of visualizations, that would be filtered through inputs. As I need to deliver a dashboard locally (without a server running in the background), I am unable to use Shiny, hence I rely on crosstalk. I know that the crosstalk package provides limited functionality in the front-end. For instance, the documentation says that you can't aggregate the SharedData object. Nonetheless, I am not clear if I can

Reactive argument to render functions

不羁岁月 提交于 2019-12-07 11:55:06
问题 I have a table in a flexdashboard whose number of columns can change. I can compute the alignment of the columns on the fly (default alignment treats $23.45 as a character vector and thus left aligns the value though it is a number and should be right aligned). The problem is I can't pass this alignment back to renderTable as a value to align because it's a reactive value. How can I pass the reactive alignment back to the renderTable function's align argument? (or an alternative that let's me