Problem with publishing on


I'm trying to publish a book on but I'm getting an error which I'm unable to debug. After opening the bookdown project through RStudio IDE, I can build the book successfully (bookdown::gitbook). Then I try to publish it by this command but getting an error -

Error in if (info$isdir) { : missing value where TRUE/FALSE needed

I used traceback() function and found the following message (the problem coming from rsconnect package) -

5: maxDirectoryList(appDir, 0, 0, 0)
4: listBundleFiles(appDir)
3: bundleFiles(siteGenerator$output_dir)
2: rsconnect::deploySite(siteDir = getwd(), siteName = name, account = account,
server = server, render = render, logLevel = "normal")
1: bookdown::publish_book()

My session info are as follow -

R version 4.0.5 (2021-03-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)

Matrix products: default

[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_4.0.5 bookdown_0.22 rsconnect_0.8.19 htmltools_0.5.1.1 tools_4.0.5
[6] yaml_2.2.1 rmarkdown_2.7 knitr_1.33 xfun_0.22 digest_0.6.27
[11] rlang_0.4.10 evaluate_0.14

I'm stuck on this problem and can't make any headway. Can someone please help me?

This topic was automatically closed 21 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.