I'm trying to build a bookdown book in rstudio.cloud because I think the idea of authoring an R book using a Chromebook is pretty amazing. However, when I try to build the book using the "build website" button in the GUI I get the following error:
==> rmarkdown::render_site(encoding = 'UTF-8')
R -e 'bookdown::render_book("index.Rmd", output=bookdown::gitbook())'
Makefile:5: recipe for target 'book' failed
make: R: Command not found
make: *** [book] Error 127
Error in render_book_script(output_format, envir, quiet) :
Error 2 attempting to render book
Calls: -> -> in_dir -> render_book_script
Execution halted
Any tips on how I might talk sweet to the cloud instance in such a way as to help my book build?
I'm already using Knit-Merge by setting new_session: yes in my _bookdown.yaml file. And I can build each chapter individually without error. So maybe there's an issue in the merge step? Ideas?
good thinking to build R4DS... I had worked through those issues recently and built the book on my local machine. I should have thought to try that. I will DM you a link to my project.
Thanks to a little out of band chat with Josh, we discovered the issue was, indeed, a path issue. For some reason the path to R was not in the PATH. So I ran this from within R: