We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb718ff commit fa7ca78Copy full SHA for fa7ca78
R/publish.R
@@ -23,8 +23,9 @@ publish_book = function(name = NULL, ...) {
23
if (x1) rsconnect::removeAccount(server = 'bookdown.org')
24
if (x2) rsconnect::removeServer('bookdown.org')
25
}
26
- if (readline('Do you want to delete local records of the Connect deployment? Your book will _not_ be deleted (y/n) ') == 'y') {
27
- rsconnect::forgetDeployment()
+ if (file.exists(d <- 'rsconnect/documents/index.Rmd/bookdown.org') &&
+ readline('Do you want to delete local records of the bookdown.org deployment? Your book will _not_ be deleted (y/n) ') == 'y') {
28
+ unlink(d, recursive = TRUE)
29
30
31
# if no accounts other than shinyapps.io and bookdown.org have been set up on
0 commit comments