I have three R Markdown files saved in their own, distinct directories (and that read files saved in their own directories) that I am rendering to HTML.
For all three, I follow the same pattern: I use the
here::here() function to provide the paths to the files to be read.
For two of the three R Markdown files, the files read the files correctly and render them. For the one with an issue, it seems to think that the working directory is in the same directory as the R Markdown file itself, even though I use
here::set_here() to the same directory that the other two use (and I checked that it worked as such using
When I move the R Markdown file that causes an issue to the directory I passed to
here::set_here(), it works just fine. In short, the file seems to think the working directory is somewhere else, and so the file doesn't render quite correctly.
How can I think about trouble-shooting this? Thank you very much.