I am working on packing my course notes together using bookdown. When I try to view my chapter updates using bookdown:::serve_book()
or simply knitting the document (supposedly a shortcut to preview_chapter
) I get the error message below. And only after updating.
Error in basename(with_ext(nms, ".html")) : path too long
Calls: <Anonymous> ... <Anonymous> -> <Anonymous> -> split_chapters -> basename
Please delete MATH456_notes.md after you finish debugging the error.
Execution halted
If I remove the mentioned .md
file, AND clean the whole project using rmarkdown::clean_site()
, it will compile just fine. But if I make changes, and try to view the update I get the following message.
Any ideas what is going on? I really don't want to rebuild the entire book every time I want to preview the current chapter.
If i'm previewing the book, and make any small change, the auto-update/live preview also throws the same error.