上传到 bookdown.org 时出错
error when uploading to bookdown.org
我试图将我的书上传到 bookdown.org。半小时后(我奇怪为什么有这么多文件上传到RStudio Connect)我报错了
2017/10/09 18:46:51.957709974 Quitting from lines 28-38 (wiss-arbeiten.Rmd)
2017/10/09 18:46:51.957825693 Error in loadNamespace(name) : there is no package called 'BiocInstaller'
2017/10/09 18:46:51.957885047 Calls: local ... try_bioc -> suppressMessages -> withCallingHandlers
2017/10/09 18:46:51.958782481
2017/10/09 18:46:51.960108826 Execution halted
我安装了 BiocInstaller 并再次尝试了几次,但出现相同的错误消息。
为了提供一个 reprex,我从头开始安装了 bookdown 并尝试上传它。我没有成功,但这次出现了另一条错误消息:
2017/10/09 21:52:18.435444168 output file: test-bookdown.knit.md
2017/10/09 21:52:18.435449884
2017/10/09 21:52:19.249176890 Latexmk: -latexoption=-halt-on-error bad option
2017/10/09 21:52:19.249238308 Latexmk: -interaction=batchmode bad option
2017/10/09 21:52:19.249408997
2017/10/09 21:52:19.249413953 Latexmk: Bad options specified
2017/10/09 21:52:19.249436980 Use
2017/10/09 21:52:19.249439476 latexmk -help
2017/10/09 21:52:19.249455810 to get usage information
GET /__api__/tasks/eHORYjLKgZlV4pom?first_status=137 524ms
2017/10/09 21:52:19.644109397
2017/10/09 21:52:19.644123280 Latexmk, John Collins, 7 May 2011. Version 4.24
2017/10/09 21:52:19.647906139 Error: Failed to compile test-bookdown.tex.
2017/10/09 21:52:19.647978929 In addition: Warning message:
2017/10/09 21:52:19.648059206 Your latexmk version seems to be too low. You may need to update the latexmk package or your LaTeX distribution.
2017/10/09 21:52:19.658900711 Please delete test-bookdown.Rmd after you finish debugging the error.
2017/10/09 21:52:19.658977638 Execution halted
但在我看来,我的乳胶版本还可以:
pdfTeX 3.14159265-2.6-1.40.18(TeX Live 2017)和 Latexmk,John Collins,2017 年 1 月 19 日。版本 4.52c
我正在使用 RStudio 版本 1.1.383 和 R 版本 3.4.2 (2017-09-28) -- "Short Summer",平台:x86_64-apple-darwin15.6.0(64 位)和 bookdown 0.5.4
知道哪里出了问题吗?
这个问题在 https://github.com/rstudio/bookdown/issues/474 交叉发布并在那里解决。简而言之,您使用了 bookdown::publish_book(render = "server")
,目前在 bookdown.org 上还没有得到很好的支持。您应该在本地渲染这本书并使用默认的 bookdown::publish_book(render = "none")
。
我试图将我的书上传到 bookdown.org。半小时后(我奇怪为什么有这么多文件上传到RStudio Connect)我报错了
2017/10/09 18:46:51.957709974 Quitting from lines 28-38 (wiss-arbeiten.Rmd)
2017/10/09 18:46:51.957825693 Error in loadNamespace(name) : there is no package called 'BiocInstaller'
2017/10/09 18:46:51.957885047 Calls: local ... try_bioc -> suppressMessages -> withCallingHandlers
2017/10/09 18:46:51.958782481
2017/10/09 18:46:51.960108826 Execution halted
我安装了 BiocInstaller 并再次尝试了几次,但出现相同的错误消息。
为了提供一个 reprex,我从头开始安装了 bookdown 并尝试上传它。我没有成功,但这次出现了另一条错误消息:
2017/10/09 21:52:18.435444168 output file: test-bookdown.knit.md
2017/10/09 21:52:18.435449884
2017/10/09 21:52:19.249176890 Latexmk: -latexoption=-halt-on-error bad option
2017/10/09 21:52:19.249238308 Latexmk: -interaction=batchmode bad option
2017/10/09 21:52:19.249408997
2017/10/09 21:52:19.249413953 Latexmk: Bad options specified
2017/10/09 21:52:19.249436980 Use
2017/10/09 21:52:19.249439476 latexmk -help
2017/10/09 21:52:19.249455810 to get usage information
GET /__api__/tasks/eHORYjLKgZlV4pom?first_status=137 524ms
2017/10/09 21:52:19.644109397
2017/10/09 21:52:19.644123280 Latexmk, John Collins, 7 May 2011. Version 4.24
2017/10/09 21:52:19.647906139 Error: Failed to compile test-bookdown.tex.
2017/10/09 21:52:19.647978929 In addition: Warning message:
2017/10/09 21:52:19.648059206 Your latexmk version seems to be too low. You may need to update the latexmk package or your LaTeX distribution.
2017/10/09 21:52:19.658900711 Please delete test-bookdown.Rmd after you finish debugging the error.
2017/10/09 21:52:19.658977638 Execution halted
但在我看来,我的乳胶版本还可以: pdfTeX 3.14159265-2.6-1.40.18(TeX Live 2017)和 Latexmk,John Collins,2017 年 1 月 19 日。版本 4.52c
我正在使用 RStudio 版本 1.1.383 和 R 版本 3.4.2 (2017-09-28) -- "Short Summer",平台:x86_64-apple-darwin15.6.0(64 位)和 bookdown 0.5.4
知道哪里出了问题吗?
这个问题在 https://github.com/rstudio/bookdown/issues/474 交叉发布并在那里解决。简而言之,您使用了 bookdown::publish_book(render = "server")
,目前在 bookdown.org 上还没有得到很好的支持。您应该在本地渲染这本书并使用默认的 bookdown::publish_book(render = "none")
。