Reputation: 5456
Is it possible to convert this interactive markdown report into an html and save it to as specific folder (the goal is to to keep this report alive outside R)? If yes, how?
---
runtime: shiny
output: html_document
---
```{r echo=FALSE}
N<-c('A','B','C'); V<-c(60,50,80); mydf<-data.frame(N,V)
selectInput("sel","Select:",choices = as.character(mydf$N))
renderText({
paste("The result is:",mydf[mydf$N==input$sel,2])
})
```
Thanks&kind regards
Upvotes: 3
Views: 5781
Reputation: 37889
From the settings in Rstudio (next to run document
), choose Preview in Viewer Panel
. This will use your browser instead of the built-in browser of Rstudio.
Then you will see that the html file is saved on your hard disk:
processing file: testing_interactive.Rmd
"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS "C:/Users/TB/AppData/Local/Temp/RtmpKYheKO/testing_interactive.utf8.md" --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output pandoc83c74213d5c.html --smart --email-obfuscation none --standalone --section-divs --template "C:\Rlibs\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --mathjax --variable "mathjax-url:https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --id-prefix section-
output file: C:/Users/TB/AppData/Local/Temp/RtmpKYheKO/testing_interactive.knit.md
Output created: C:/Users/TB/AppData/Local/Temp/RtmpKYheKO/file83c15d05b9c.html
Upvotes: 1