Closed mfherman closed 6 years ago
Looks like a permissions issue on the folder, but why it should only affect hux I don't know. Can you show me the equivalent pandoc command line using kable
Also can you provide a traceback with options(error=traceback)
Here is the traceback I get when I try to render the .Rmd file with the hux:
output file: test_hux.knit.md
"C:/PROGRA~2/Pandoc/pandoc" +RTS -K512m -RTS test_hux.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output test_hux.html --smart --email-obfuscation none --self-contained --standalone --section-divs --template "C:\Users\MHerman\R\Library\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "C:\Users\MHerman\AppData\Local\Temp\RtmpmcG6te\rmarkdown-str202864af7588.html" --mathjax --variable "mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
Error in writeLines(output_str, output_file, useBytes = TRUE) :
Error writing to connection: Permission denied
3: writeLines(output_str, output_file, useBytes = TRUE)
2: output_format$post_processor(yaml_front_matter, utf8_input, output_file,
clean, !quiet)
1: rmarkdown::render("./test_hux.Rmd")
The pandoc output for the successful kable version looks to be the same as the hux that throws the error
output file: test_kable.knit.md
"C:/PROGRA~2/Pandoc/pandoc" +RTS -K512m -RTS test_kable.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output test_kable.html --smart --email-obfuscation none --self-contained --standalone --section-divs --template "C:\Users\MHerman\R\Library\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "C:\Users\MHerman\AppData\Local\Temp\Rtmp8eQRFp\rmarkdown-str1cd44294162e.html" --mathjax --variable "mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
Output created: test_kable.html
The only thing I can do is suggest you debug with options(error=recover) and see where and why it is writing to a file and getting permission denied.
Assuming this is not a huxtable issue
I'm a new huxtable user and I'm having some trouble printing a table in HTML via RMarkdown/knitr. When I try to knit a document with the simple example from the huxtable vignette, I get an error.
Just as test, I tried knitting the same document but using
knitr::kable
instead ofhux
and the document knits to HTML with no problem.Any ideas?