Apologies, that would have been helpful! I am using distill 0.8, and I just upgraded to rmarkdown 2.4 (and re-rendered blog plost and re-built website, still same).
And this from the Build window would probably be helpful as well - looks like item 2 may be the culprit.
Output created: _site/index.html
Warning messages:
1: In file.copy(from = file.path(dirname(article$path), rmd_resources), :
problem copying .\_posts\2020-09-22-exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr\exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr_files\distill-2.2.21\template.v2.js to .\_site\posts\2020-09-22-exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr\exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr_files\distill-2.2.21\template.v2.js: No such file or directory
2: In file.copy(from = file.path(dirname(article$path), rmd_resources), :
problem copying .\_posts\2020-09-22-exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr\exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr_files\figure-html5\unnamed-chunk-3-1.png to .\_site\posts\2020-09-22-exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr\exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr_files\figure-html5\unnamed-chunk-3-1.png: No such file or directory
3: In file.copy(from = file.path(dirname(article$path), rmd_resources), :
problem creating directory .\_site\posts\2020-09-22-exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr\exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr_files\header-attrs-2.3: No such file or directory
4: In file.copy(from = file.path(dirname(article$path), rmd_resources), :
problem creating directory .\_site\posts\2020-09-22-exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr\exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr_files\header-attrs-2.4: No such file or directory
5: In file.copy(from = file.path(dirname(article$path), rmd_resources), :
problem creating directory .\_site\posts\2020-09-22-exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr\exporting-editable-ggplot-graphics-to-powerpoint-with-officer-and-purrr_files\webcomponents-2.0.0: No such file or directory
Just a guess: I know windows (and R) has sometimes difficulties when the path is really long. And I notice in you case you have a very long file name and folder name.
Can you try by shorthening the name to see if it works ?
Thank you for the suggestion! And yes, I do think I have gotten weird errors for other posts when names are too long and/or different types of punctuation in the title.
I'm pretty sure for this post the image did render correctly when originally published - but then I messed a couple of yaml option in different places (trying to modify RSS feed) and pushed to git without noticing the image not rendering.
If I rename the post, won't that change the slug and the url? So if that is the solution, then the links up to the published blog post break?
Is it worth trying just deleting nearly everything except the .Rmd and re-rendering? If so, would you delete the corresponding folder under _site as well and re-build?
I would follow the docs I linked on that matter but yes I think it would change the url.
You can but if this is an issue with Windows and Long Path Names then it will be the same. if you have everything on Git, you can try rendering in Linux (on RStudio cloud for example) to see if this is Windows related as I think. On windows, you can also move the project folder somewhere closer to root of your computer so that the path of a file is shortened.
I think yes you could delete this folder and it would be recreated when rebuilding. Anyway, I am not an expert on Distill - be safe with what you are doing. If you use Git, you have a security I believe.
Thanks for chiming in! I did delete _site/ as well as ..._files in the post and re-render the rmarkdown and rebuild the site, and the problem remains. ¯\_(ツ)_/¯ I might just let this one go!