From d3 to pdf (hopefully knitr) with R Shiny
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Although I think I like the d3, R, and Shiny team the best, I could definitely envision a big need for multi-page pdf reports created with R, knitr, and latex delivered to the browser with Shiny. Shiny helpfully provides pre-built functionality to send .png charts and graphics created by R to the web. This works especially well since most browsers offer containers for the graphics that can dynamically change.
In this quick experiment, I use the pdf() dev function from R instead of the hoped for knit2pdf to see if sending the binary pdf data is possible. It seems the downloadHandler function from Shiny only currently handles text.
Try it out at http://glimmer.rstudio.com/timelyportfolio/shiny-d3-pdf. It seems to work with the newest Chrome and IE.
Code at Github.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.