-
-
Notifications
You must be signed in to change notification settings - Fork 975
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
File is not found by pandoc when Evaluate chunk in Directory set to Project #1983
Comments
@eyayaw I opened a new issue with this to have a more dedicated place to look into this. You will be able to provide a reproducible examples, or at least more details on how your project is structured and what is the content of your files. As reminder, you have an issue guide to follow: https://yihui.org/issue/. It is better to open new issues when you're not sure the problem you encounter is exactly the same as the one in which you are posting. And better to ask question on other places than Github issues. Anyway, as hints, here is my understanding of your issue: I believe this RStudio option you used is confusing. It will change the working directory for your code chunk evaluation by knitr inside your R Markdown document. However, it will not change the directory from which That means bibliography: Documentations/packages.bib will be looked into the input dir. If you don't want to have the file in the same directory, you need to use absolute path. The here 📦 can help you to generate an absolute path from a relative project path. Using inline R chunk in the Rmd will render as text in the md that Pandoc will convert (https://here.r-lib.org/articles/rmarkdown.html) Example in your yaml bibliography: '`r here::here("Documentations/packages.bib")`' Hope it helps. |
As there was no activity on this following the comment, I'll close this. @eyayaw Please feel free to reopen or open a new issue if there is still something not clear. Thanks |
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. |
@cderv Thank you for the quick explanation. Yeah, it works when I copy the 'references.bib' file to the folder where the '.Rmd' file lives. However, I still find it puzzling why
rmarkdown/pandoc
does not find theDocumentation/references.bib
file. In fact, I set theEvaluate Chunks in Directory option to Project
and I expect that to work. I am missing something here? Thank you.Originally posted by @eyayaw in #1268 (comment)
The text was updated successfully, but these errors were encountered: