Hi,
I'm trying to publish a book on bookdown.org 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 -
bookdown::publish_book()
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) -
traceback()
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 -
sessionInfo()
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
locale:
[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?