Quarto seemingly not executing .qmd files in file directory #2100
-
Hello! I'm attempting to re-build a distill blog in Rmarkdown to quarto. I'm running into an issue where quarto seems to not be respecting the Each blog post has its own sub-directory ('website/posts/yyyy-mm-dd-unique-slug/'). Within the post sub-directory, I have a directory for data. When I attempt to render the blog (or just the individual post) I get a message that
this seems to tell me that the blog index.qmd file is not being rendered in its directory, but rather in the project directory, since the path to the data should read 'F:/Documents/website/posts/yyyy-mm-dd-unique-slug/data/named-data.csv'. My _quarto.yml file looks like this:
If it's relevant, I basically am following the directions from Nick Tierney's post: https://www.njtierney.com/post/2022/04/11/rmd-to-qmd/
Session info: Matrix products: default locale: attached base packages: loaded via a namespace (and not attached): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I believe I found the issue. I was using I don't know enough about the intricacies of working directories and rendering and the |
Beta Was this translation helpful? Give feedback.
I believe I found the issue. I was using
here::here()
in myread_csv()
call. With a little more troubleshooting in a simpler post I found thatgetwd()
returned the correct working directory for the blog post, buthere::here()
returned the project directory. Removinghere::here()
from the code fixed the issue.I don't know enough about the intricacies of working directories and rendering and the
here
package to make sense of why this might happen. Is this expected behavior that I just don't understand?