Closed qiushiyan closed 4 years ago
> xfun::session_info('bookdown')
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362), RStudio 1.2.5001
Locale:
LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
LC_TIME=English_United Kingdom.1252
Package version:
base64enc_0.1.3 bookdown_0.14 digest_0.6.21 evaluate_0.14 glue_1.3.1 graphics_3.6.1
grDevices_3.6.1 highr_0.8 htmltools_0.4.0 jsonlite_1.6 knitr_1.25 magrittr_1.5
markdown_1.1 methods_3.6.1 mime_0.7 Rcpp_1.0.2 rlang_0.4.1 rmarkdown_1.16
stats_3.6.1 stringi_1.4.3 stringr_1.4.0 tinytex_0.17 tools_3.6.1 utils_3.6.1
xfun_0.10 yaml_2.2.0
Thanks for the report.
How did you try to publish you book ? Did you follow the documentation https://bookdown.org/home/about/ ?
bookdown::publish_book(render = 'local')
I ask because when publishing a content to bookdow.org, no Rmarkdown file should be run on the servers, and so no R version should be required. Bookdown should be build locally on your computer then the resulting gitbook output should be published.
Only R upto 3.4.0 is available on bookdown.org RStudio connect. When deploying a content that requires R to run the document, a match is done between your version of R locally, and one on the servers. The closest is used. (Reminder: this should not happened when publishing to bookdown.org)
However, there are changes in R 3.6.0 that are not retro compatible. Specifically with serialization format. See https://stat.ethz.ch/pipermail/r-announce/2019/000641.html
That means code that runs locally on R 3.6.1 should not work by default on bookdown.org because not compatible with R 3.4.0. To make the code compatible, specifically R objects savec that should be loaded again, the default should be changed.
I tell you this so thta you understand the issue, but I don't think this is normal that R code are run on the bookdow.org server.
Try to publish using bookdown::publish_book(render = 'local')
by following the doc
I see, now it worked. Great help!
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
I was trying to publish a bookdown project to https://bookdown.org/, and encoutered this error:
I tried to search for /opt/R/3.4.0/bin/R in my computer and found nothing. My sessioninfo is: