I use the render_book in a .r file to compile my .Rmd file to a .html (or other formats)
For example a file Testing123.Rmd file in a folder called source-posts, upon running the script below, will write to a file Test123.html in a folder output/source-posts
This method has worked in the past and worked again, for some reason, at the end of the OP which is why I expect the ticket was closed.
The result of the script now is the error message
render_book(
input = "./source-posts",
output_format = c("bookdown::html_book"),
output_dir = "../output/posts",
output_file = paste .... [TRUNCATED]
Error in stop_if_not_exists(input) :
Some files were not found: ./source-posts
which is the same error message as in the OP.
Thinking that perhaps this error had been fixed with a new version of bookdown I installed bookdown ver 0.28 as seen from
sessionInfo()
R version 4.2.0 (2022-04-22)
Platform: aarch64-apple-darwin21.3.0 (64-bit)
Running under: macOS Monterey 12.4
Matrix products: default
LAPACK: /opt/homebrew/Cellar/r/4.2.0/lib/R/lib/libRlapack.dylib
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] bookdown_0.28
loaded via a namespace (and not attached):
[1] compiler_4.2.0 fastmap_1.1.0 htmltools_0.5.2 tools_4.2.0 yaml_2.3.5 rmarkdown_2.14 knitr_1.39 xfun_0.31
[9] digest_0.6.29 rlang_1.0.2 evaluate_0.15
In the OP there is a link to a Bitbucket Repo with a minimal working example which @cderv has said in the past compiles without error. I have added to this minimal working example the file Testing123.Rmd and run the renderscript_singlePost.r in this repo (as on my own machine) and in both cases gotten the error
Error in stop_if_not_exists(input) :
Advice or a solution would be much appreciated as I cannot continue work without a solution.
After trying to revert to the previous version of bookdown 0.26 which the render_book script mentioned above worked, I got the same error
Error in render_book(input = "./source-posts", output_format = c("bookdown::html_book"), :
Some files were not found: ./source-posts
From the OP (which is closed) and hence I have had to "revisit" it by making this new post, I believe @cderv mentioned that something might have changed in the "xfun" package. I realized in this new post that while I updated bookdown to 0.28 I did not also update the other packages.
When running the render_book script now I still receive the "some files not found" error
render_book(
input = "./source-posts",
output_format = c("bookdown::html_book"),
output_dir = "../output/posts",
output_file = paste .... [TRUNCATED]
Error in render_book(input = "./source-posts", output_format = c("bookdown::html_book"), :
Some files were not found: ./source-posts
I am now officially out of ideas and hoping that some advice on how to proceed or some insight to what I am doing wrong would be much appreciated.
Since there is not any traction on this post and I need to keep writing and working, I will close with the work around I have come to in case it helps anyone and documents (at least for myself) the settings for which my workflow last worked.
I have an "older" build of Rstudio and bookdown (and what I assume to be required packages, xfun, etc.) on another machine for which the scripts in the Bitbucket Repo compile correctly a foo.Rmd into foo.html (via a combination of the script and setting in _output.yml using render_book bookdown::html_book) or other output formats like bookdown::gitbook, bookdown::epub_book, bookdown::pdf_book.
The session information for this working build is:
sessionInfo()
R version 4.1.3 (2022-03-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Mojave 10.14.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.1.3 fastmap_1.1.0 htmltools_0.5.2 tools_4.1.3 yaml_2.3.5 rmarkdown_2.13
[7] knitr_1.38 xfun_0.30 digest_0.6.29 rlang_1.0.2 evaluate_0.15
I did try to revert to old versions on my new machine, to replicate the old machine build, but I must have missed some reversions and was not able to replicate the old build.