I have rendered a Quarto document successfully and wish to execute the publish command from the Console in RStudio but receive the above error when I try and publish the Quarto book.
Reproducible steps: In RStudio
- File >> New project >> New Directory >> select Quarto Book and give the project a name
- Render the book with Build and Render Book
- Publish to bookdown using bookdown::publish_book(account='my_username', server='bookdown.org', render='none')
When I execute step 3 I receive the above error. Could anyone help?
I notice when I use Rstudio to publish the book RStudio uses
rsconnect::deployApp(appDir = "C:/Users/XXXXXX/Documents/Work/R/Publish_book_text/_book", recordDir = "C:/Users/XXXXXX/Documents/Work/R/Publish_book_text", appFileManifest = "C:/Users/XXXXX~1.GLA/AppData/Local/Temp/c6e5-0e00-e5f1-5e3b", account = "XXXXX", server = "bookdown.org", appName = "publish_book_text", appId = 10936, contentCategory = "site", launch.browser = function(url) { message("Deployment completed: ", url) }, lint = FALSE, metadata = list(asMultiple = FALSE, asStatic = TRUE), logLevel = "verbose")
Should I use deployApp rather than publish_book?
I tried entering
---
site: bookdown::bookdown_site
---
in the yaml file of index.qmd
but this still gave me the above error.
I want to render and publish from the Console in RStudio as I am using the same Quarto code to publish reports for different customers and specify params at the command line.
Could anyone help?