Skip to content

Instantly share code, notes, and snippets.

## In https://github.com/rstudio/htmltools/blob/master/R/html_print.R#L41
## html_print doesn't have an option on how and where to write the html
## it always creates anothe temporary directory and writes the HTML there
## This bypasses that with an uglry recursive copy ...
options(rbokehViewDir = tempfile("rbokehviz"))
if(!file.exists(getOption("rbokehViewDir")))
dir.create(getOption("rbokehViewDir"))
## On my remote system, i have a public_html/tmp folder setup that i