本地 Mac OS 上的编译记录
==> rmarkdown::render_site(encoding = 'UTF-8')
|.... | 10%
inline R code fragments
processing file: index.Rmd
|......... | 20%
label: setup (with options)
List of 1
$ include: logi FALSE
|.............. | 30%
ordinary text without R code
|.................. | 40%
label: python-plotly (with options)
List of 3
$ fig.cap: chr "Python 版的 plotly"
$ eval : logi TRUE
$ engine : chr "python"
|...................... | 50%
label: export-image (with options)
List of 3
$ echo : logi FALSE
$ eval : logi FALSE
$ engine: chr "python"
|........................... | 60%
label: iris (with options)
List of 4
$ echo : logi FALSE
$ eval : logi FALSE
$ fig.cap : chr "插入图片"
$ out.width: chr "75%"
|................................ | 70%
ordinary text without R code
|.................................... | 80%
label: unnamed-chunk-1
|........................................ | 90%
ordinary text without R code
|.............................................| 100%
label: unnamed-chunk-2 (with options)
List of 2
$ include: logi FALSE
$ cache : logi FALSE
output file: index.knit.md
|.............................................| 100%
ordinary text without R code
processing file: appendix.Rmd
output file: appendix.knit.md
|.............................................| 100%
inline R code fragments
processing file: references.Rmd
output file: references.knit.md
/usr/local/bin/pandoc +RTS -K512m -RTS bookdown-broken.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output bookdown-broken.html --lua-filter /Library/Frameworks/R.framework/Versions/4.1/Resources/library/bookdown/rmarkdown/lua/custom-environment.lua --lua-filter /Library/Frameworks/R.framework/Versions/4.1/Resources/library/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /Library/Frameworks/R.framework/Versions/4.1/Resources/library/rmarkdown/rmarkdown/lua/latex-div.lua --metadata-file /var/folders/tj/d2qg79690bx3gy4fmz2n140r0000gn/T//Rtmp9MHhnI/file125a37c91e87a --wrap preserve --standalone --section-divs --template /Library/Frameworks/R.framework/Versions/4.1/Resources/library/bookdown/templates/bs4_book.html --highlight-style pygments --number-sections --css style.css --include-in-header /var/folders/tj/d2qg79690bx3gy4fmz2n140r0000gn/T//Rtmp9MHhnI/rmarkdown-str125a34f35e17a.html --mathjax --include-in-header header.html --citeproc
Tweaking _book/index.html
Tweaking _book/chap:installation.html
Error in file(con, "r") : cannot open the connection
Calls: local ... bs4_chapter_tweak -> <Anonymous> -> read_utf8 -> readLines -> file
In addition: Warning message:
In file(con, "r") :
cannot open file '_book/chap:installation.html': No such file or directory
Execution halted
Error: bookdown::render_book() failed to render the output format 'bookdown::bs4_book'.
Execution halted
Exited with status 1.
测试环境
xfun::session_info(packages = c(
"knitr", "rmarkdown", "bookdown"
), dependencies = TRUE)
## R version 4.0.5 (2021-03-31)
## Platform: x86_64-apple-darwin17.0 (64-bit)
## Running under: macOS Catalina 10.15.7
##
## Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8
##
## Package version:
## base64enc_0.1.3 bookdown_0.22
## digest_0.6.27 evaluate_0.14
## glue_1.4.2 graphics_4.0.5
## grDevices_4.0.5 highr_0.9
## htmltools_0.5.1.1 jsonlite_1.7.2
## knitr_1.33 magrittr_2.0.1
## markdown_1.1 methods_4.0.5
## mime_0.10 rlang_0.4.11
## rmarkdown_2.8 stats_4.0.5
## stringi_1.6.2 stringr_1.4.0
## tinytex_0.31 tools_4.0.5
## utils_4.0.5 xfun_0.23
## yaml_2.2.1
##
## Pandoc version: 2.11.4
另附
专门造了一个仓库,以后每次折腾都开 PR 记录,比如这次 https://github.com/XiangyunHuang/bookdown-broken/pull/2
一方面复现遇到的 bookdown 的问题,另一方面,偶有闲暇时作死地折腾,比如目前为止收集到三种自动化部署和托管书籍的方式