[英]bookdown-demo Can Build pdf and epub, but have error with gitbook creation
I am trying to create the HTML output in gitbook format for the demo Bookdown files. 我正在尝试以gitbook格式为演示Bookdown文件创建HTML输出。 When I go to build I receive the following error:
当我去构建时,我收到以下错误:
D:\\R-Work\\bookdown-demo-master
, as I don't want any of my work saved in the mapped network documents folder. D:\\R-Work\\bookdown-demo-master
,因为我不希望我的任何工作保存在映射的网络文档文件夹中。 \\\\DRIFTWOODDC\\Student\\steven.taylor\\My Documents\\R\\win-library\\3.5
\\\\DRIFTWOODDC\\Student\\steven.taylor\\My Documents\\R\\win-library\\3.5
My _output.yml
file has not been changed from the originally downloaded version: 我的
_output.yml
文件尚未从最初下载的版本更改:
bookdown::gitbook:
css: style.css
config:
toc:
before: |
<li><a href="./">A Minimal Book Example</a></li>
after: |
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
edit: https://github.com/rstudio/bookdown-demo/edit/master/%s
download: ["pdf", "epub"]
bookdown::pdf_book:
includes:
in_header: preamble.tex
latex_engine: xelatex
citation_package: natbib
keep_tex: yes
bookdown::epub_book: default
I am expecting RStudio to create the html files for the gitbook output, but none are created and I receive the following error: 我期待RStudio为gitbook输出创建html文件,但没有创建,我收到以下错误:
==> rmarkdown::render_site(output_format = 'bookdown::gitbook', encoding = 'UTF-8')
Error in system.file(..., package = "bookdown", mustWork = TRUE) :
no file found
Calls: <Anonymous> ... do.call -> <Anonymous> -> bookdown_file -> system.file
Execution halted
Exited with status 1.
I have the same symptoms and issues if I try to create the bookdown-crc template files in gitbook format. 如果我尝试以gitbook格式创建bookdown-crc模板文件,我会遇到相同的症状和问题。 I can create the pdf and epub, but not the html output.
我可以创建pdf和epub,但不能创建html输出。
I performed the following actions to troubleshoot: 我执行了以下操作来排除故障:
It seems that there is an issue using networked drives for the R Libraries. 似乎使用R库的网络驱动器存在问题。 By default on my Windows work computer the R Libraries were put into the "My Documents" folder.
默认情况下,在我的Windows工作计算机上,R库被放入“我的文档”文件夹中。
Second successful method was to install RPortable and RStudioPortable on a USB Drive and use the portable version to generate the bookdown::gitbook
. 第二个成功的方法是在USB驱动器上安装RPortable和RStudioPortable,并使用便携版本生成
bookdown::gitbook
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.