Error: Input files not all in same directory, please supply explicit wd

前端 未结 3 1932
灰色年华
灰色年华 2020-12-20 17:51

After trying to build a PDF that worked ~2 weeks ago, no fuss, on a new machine with a fresh install of R, R studio, bookdown, etc, I have this error:

         


        
3条回答
  •  清酒与你
    2020-12-20 18:28

    Update: This has been fixed in the dev version of bookdown: https://github.com/rstudio/bookdown You can install it via remotes::install_github('rstudio/bookdown').


    This might be related to a recent feature in bookdown. Since you didn't provide a reproducible example, my blind guess is that setting options(bookdown.render.file_scope = FALSE) might fix it. You can set this option in either your Rmd document or ~/.Rprofile.

提交回复
热议问题