This gist consists of a makefile
and a script
that can automate the
creation of PDFs from Slidify generated HTML slides. The script assumes
that the makefile
and the script makepdf.js
are in the same
directory as the Rmd
file. The makepdf.js
script uses
casperjs, a very useful utility to automate
tasks that require browser interaction. You may follow the installation
instructions on the casperjs website, to make
sure that you have all the dependencies correctly installed before
trying this out.
To install the R
packages:
# install devtools if you haven't already
# install.packages('devtools')
pkgs <- c("slidify", "slidifyLibraries", "rCharts")
install_github(pkgs, 'ramnathv', ref = 'dev')
To install casperjs
1.1 (as casperjs 1.0.x does not work with
phantomjs versions >= 1.9.0) [on a mac with brew]:
brew install casperjs --devel
Hi! Have you find a way to embed rCharts plots in the PDF? Maintaining the plot as it will render in the HTML page, dynamic and modifiable?
I run this, with some extra tweaks, and the graphs just does't show in the PDF