Commit 89115af7 authored by Holger Brandl's avatar Holger Brandl
Browse files

fixed working directory

parent d11780cd
......@@ -87,6 +87,11 @@ opts_chunk$set(
## alternatively we could use tmpScript <- tempfile(fileext=".R", tmpdir=".") but it would require addtional cleanup
root.dir = getwd()
rmarkdown::render(input=tmpScript,output_file=str_replace(basename(r_script), ".R", ".html"),
output_format=rmarkdown::html_document(toc = opts$toc, keep_md=T, pandoc_args=paste0("--include-in-header=", jsAddons)),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment