Posts

Showing posts with the label r-markdown

`bookdown`/`rmarkdown`/`knitr`: Hook for execution after output document is finalized?

`bookdown`/`rmarkdown`/`knitr`: Hook for execution after output document is finalized? My PDF -report generation using bookdown includes packing of result files into a zip archive, into which I (currently manually) integrate the PDF document itself as well. PDF bookdown zip PDF Is there any hook that would enable automating the integration of the finished PDF ? WOuld require a post- pdflatex command by knitr , I suppose ... PDF pdflatex knitr How do you currently trigger the knitting? The RStudio button? Is something along the lines of this stackoverflow.com/questions/39713618/… helpful? – CL. Jul 2 at 12:27 That looks interesting indeed ... off investigating. – balin Jul 2 at 15:33 ...

Shiny app: No error reported, but why the VAR6A_2 is empty?

Shiny app: No error reported, but why the VAR6A_2 is empty? Hey I have a question with shiny. After I click on 'Run App", no error is reported, but the tabpanel VAR 6A_2 is empty.. I tried the code outside the app, the code works. But after I move the code inside the app, no result is showed. So confusing. Another question is, I need to create more than 30 tabpanels for the app. Each tabpanle has one variable. What makes thing complicated is, for some of the variables, they are computed with their above variables. For example, Var 4 is computed from Var 2 and Var 3. Here I store all the variables in one app. It is a little confusing because there are so many variables. Is there a better way to organize them? Thanks a lot. Here is the code, thanks. library(shiny) library(plotly) #library(d3heatmap) library(dplyr) #library(ggplot2) #library(ggthemes) #library(gplots) library(readxl) library(tidyr) #source('./utils.R') Index_2 <- read_xlsx('Index 2.xlsx') Index...

R Flexdashboard multiple plots on single tab

R Flexdashboard multiple plots on single tab I'm trying to put multiple dygraph plots on a single tab of a flexdashboard. I've tried a bunch of different options from here and from here My RMD file looks like this: --- title: "Project Dashboard" output: flexdashboard::flex_dashboard: orientation: columns vertical_layout: scroll --- # Intro {.sidebar} # Page 1 ## Column 1 {.tabset .tabset-fade data-width=850} ### Site 1 ```{r Data, echo=FALSE, fig.height=2} s <- dygraph(as.xts(df,order.by=df$DateTime), group = "NC") %>% dyOptions(drawPoints = TRUE, pointSize = 1) %>% dyAxis("y", label = "Salinity (PSU)", valueRange = c(16, 30)) %>% dyRangeSelector(height = 20) %>% dyLegend(width = 400) t <- dygraph(as.xts(df,order.by=df$DateTime), group = "NC") %>% dyOptions(drawPoints ...