Migrating bookdown book to cloud

I would appreciate some help on migrating a book from bookdown.org to the new Posit Connect Cloud site. The book (gitbook format) builds correctly in RStudio but when I attempt to publish or republish to the new site, only the first couple of sections appear and I get a message "attempt to apply non-function". How do I track down the cause of this error? The first chapter that fails to load starts with \mainmatter. Are LaTex commands a problem?

I apologize in advance for my lack of understanding of the process, but sure could use a little help!

Hi,

Can you share the steps you follow to publish? Are you using bookdown::publish_book()?

Also where is your error happening? Locally when publishing or online when trying to view ?

See Migration Guide: Publishing Your bookdown Book to Posit Connect Cloud • bookdown

Default is to render locally, and publish only the HTML output. if you want to render online, you need to follow connect cloud step to provide a manifest. See Render on Connect Cloud FAQ item and maybe others.

If you can share more details, I'll try to help further.

I am rendering locally and using bookdown::publish_book(). The local version of the book opens in a new RStudio window and is complete. If I click the button for "Open in Browser", the Browser version is also complete. It is only when I attempt to Republish to Posit Connect Cloud that I get the error (hopefully you can see the image!). Thanks for your help.

It seems an issue with the RStudio IDE publishing feature. I don't know if the RStudio IDE supports posit cloud :thinking:

Connect cloud is not exactly like a connect server I believe, and I find this issue

In the documentation I linked in my previous post, we details the functions to use. If you use bookdown::publish_book() that should solve it. Did you try ?

Using the Build tab did not work but using bookdown::publish_book() in the Console did work! Thank you very much for guiding me to the solution.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.