-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems rendering PDF data report from within markdown chunk #19
Comments
Have you identified the issue behind this bug? If so, is it a big hairy bug not for the faint of heart? I still get it with: Looking at the tex file, I see unbalanced My use-case is actually more complex: generating the Rmd with render = FALSE, openResult = FALSE, then promoting headings 1 # level, then inserting that Rmd file back into my main document as an appendix via chunk options child = tmp.Rmd, which works beautifully for html but fails for pdf. |
To be honest I haven't looked at this bug in quite some time. Will try to figure out exactly what is causing it |
Hmm. I just did a check with the most recent version on GitHub and I'm not receiving an error anymore. At least not for the MWE I listed above. If I run
then it appears to work (at least in the sense that an error isn't thrown). Could you provide a simple example matching your situation which faults? Oh ... and try with the GitHub version |
I just checked with R 3.6.0, dataMaid_1.2.0, pandoc 2.7.2, MiKTeX 2.9 on MSwin . Even running from the R console, omitting Rmd & R Studio, I get an Rmd intermediate file but not the pdf file, as R throws the following error after the warning to make sure the pdf file isn't open:
If I open that Rmd file and knit to html it works, but If I knit to pdf again it throws an error and fails.
My simple example:
Do you have a different LaTeX engine or version of pandoc in your toolchain? Or are you running on a different (better) OS? |
Just tried to run your example and got a nice pdf-file out of this. Did you use the most recent version of My
|
This little bit of code will produce an error if
output="html"
is removed or changed tooutput="pdf"
when callingmakeDataReport()
.The text was updated successfully, but these errors were encountered: