I messed up my bookdown book, and I am hoping that you can help.
I managed to somehow get disconnected from my public bookdown.org site, which is
https://bookdown.org/pdr_higgins/rmrwr/
Updates that I publish go to RStudio connect, and are updated at
https://bookdown.org/connect/#/apps/6226/access
(most recently, content in Chapter 4 beyond 4.2)
but these no longer propagate to
https://bookdown.org/pdr_higgins/rmrwr/
(which is at https://bookdown.org/connect/#/apps/5384/access)
When I publish, I get appropriate messages, including
`R> bookdown::publish_book(account = 'pdr_higgins')
Preparing to deploy site...
Update application currently deployed at
https://bookdown.org/content/6226/? [Y/n] Y
DONE
Uploading bundle for site: 6226...DONE
Deploying bundle: 32513 for site: 6226 ...
[Connect] Building static content...
[Connect] Launching static content...
Site successfully deployed to https://bookdown.org/content/6226/`
So it looks like it is updating the site (actually a slightly different site)- but it is not changing the content at
https:/bookdown.org/pdr_higgins/rmrwr
One thing that may (or may not) be relevant - when I connected to RStudio, I was asked to log in via google. Previously Safari had stored my login information. I don't know if I am somehow logged in slightly differently - it seems unlikely, but...
One (probably more likely) cause is that I experimented with changing the book_filename in _bookdown.yml (terrible idea, it turns out) from "rmrwr" to "RMRWR".
I have since changed it back, and saved the updated _bookdown.yml file, committed and pushed,
re-rendered the book and re-published.
When I publish, RStudio opens a connection to Rstudio connect at
which has the updates to content.
But if I look at the top left, next to the 'hamburger' menu, it says Content/RMRWR - so it is still updating the 'capitalized' version.
If I click on the Content link, next to the 'hamburger' menu, I see a list of bookdown books, including RMRWR (the most recently updated), but there is also rmrwr (lower case version), which has not been updated since yesterday.
Of note, if you click on the access tab on the right in Rstudio connect, the content URL listed on the most updated (capitalized RMRWR) version is
But the older, proper (lower case rmrwr) version with the custom URL has a content URL listed of
https://bookdown.org/pdr_higgins/rmrwr
which is where I want the updates to go.
Essentially, I want to make sure that all publishing updates go to
https://bookdown.org/pdr_higgins/rmrwr
but currently they seem to be going to
https://bookdown.org/content/6226
Also note that if I specify the name argument in the publish_book function, e.g.
bookdown::publish_book(account = 'pdr_higgins', name = 'rmrwr')`
as the lower case version "rmrwr"
(even though it should default to this as this is the book_filename in _bookdown.yml),
it still deploys to
https://bookdown.org/content/6226/
rather than
https://bookdown.org/pdr_higgins/rmrwr
How do I fix this so that when I run
`bookdown::publish_book(account = 'pdr_higgins')
I am updating the 'rmrwr' version and effectively update the
https://bookdown.org/pdr_higgins/rmrwr/
website?
thanks for your help!