-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Pandoc error with word output and template #1062
Comments
Hi @GabriellaS-K, can you share more about the information in your YAML about the output format ? Also can you share what is before the Pandoc error, the whole command line (usually it is in the rmarkdown pane in the IDE). Thank you ! |
Hi, Thank you so much! I'm trying to knit my bookdown files (which are kept on one drive) to a word document, using a word template (I followed Yihui Xie's wonderfully helpful Vimeo). Below is the YAML for my index script:
In the 'build' pane, this is the full error message:
Thank you again for your patience |
Sorry for the delay. |
Hi! My turn to apologise for the delay! The |
Funny enough, it works if the whole folder is on my desktop. But I work with a team, using one drive, and that's where it stops working. The contents of the folder is exactly the same, but if its on a local computer it works, if not-it doesn't. Its not a long term solution to keep downloading the folder and do it that way... |
Interesting. So this is a matter of network drive. We already have some issue in the past with this and Pandoc. The first issue you put this too could have been the right one. Can you try also the same but without bookdown ? Using rmarkdown and Next test would be with pandoc only.
# This is a test file
With a paragraph
pandoc -t docx -o test.docx --reference-doc=template.docx test.md Or using R: rmarkdown::pandoc_convert(
"test.md", "docx", output = "test.docx",
options = c("--reference-doc", "template.docx"))
) Does it works ? |
Weirdly, this has fixed itself?? I'm now building the book from one drive, and it knits to word! Maybe a bug that sorted itself out? Sorry for the slow responses, appreciate your time on this! |
That is great and it is really good news ! No worries on the time spent - if you encounter a new error, please reach out. |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
Sorry, I hope I've posted in the right place...I'm not sure I have! I am trying to knit my bookdown to word, and it fails each time.
The error message:
R version:
Mac is OS Catalina, 10.15.7
Thank you for your patience
Originally posted by @GabriellaS-K in rstudio/rmarkdown#701 (comment)
The text was updated successfully, but these errors were encountered: