0

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

  1. File >> New project >> New Directory >> select Quarto Book and give the project a name
  2. Render the book with Build and Render Book
  3. 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?

shafee
  • 15,566
  • 3
  • 19
  • 47
Philip
  • 335
  • 3
  • 11
  • Why don't you try [Quarto Pub](https://quartopub.com/) which is a free publishing service for content created with `Quarto`? Quarto Pub is ideal for blogs, course or project websites, books, presentations, and personal hobby sites. Read along [this page](https://quarto.org/docs/publishing/quarto-pub.html#overview) on Quarto doc to get started. – shafee Sep 26 '22 at 13:08

0 Answers0