The R project and related files are available here.
I built a gitbook with bookdown
package last December, which you may find in https://bookdown.org/ritsu_kitagawa/_book6/.
When I first built it, there was no error related to the split_by
option. But now I get an error message saying
Error in split_chapters(output, gitbook_page, number_sections, split_by, :
Automatically generated filenames contain duplicated ones: -, -, -, -, -, -, -, -, -
Calls: <Anonymous> ... <Anonymous> -> <Anonymous> -> split_chapters -> <Anonymous>
when I tried to build the same book.
My YAML is the following.
---
title: "『Rによる原因を推論する』"
author: "北川 梨津,原 健人"
date: "`r Sys.time()`"
site: bookdown::bookdown_site
output: bookdown::gitbook
documentclass: book
bibliography: [book.bib, packages.bib]
biblio-style: apalike
link-citations: yes
github-repo: rstudio/bookdown-demo
description: "久米ゼミのプレゼミのための教材です."
cover-image: "gennin.png"
favicon: "gennin.png"
apple-touch-icon: "gennin.png"
---
The book is written in Japanese. I know I can force it to be built if I set the split_by
option to none
. I am wondering why I cannot build a file which I could.
Can anyone tell me why this is occurring? Were there any updates or something?
Thank you.
Here is a minimal working example. I cannot build this one, either. I got the same error message:
Error in split_chapters(output, gitbook_page, number_sections, split_by, :
Automatically generated filenames contain duplicated ones: -
Calls: <Anonymous> ... <Anonymous> -> <Anonymous> -> split_chapters -> <Anonymous>
Execution halted
Exited with status 1.
Below is my session info:
R version 3.6.2 (2019-12-12)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.6
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.17 compiler_3.6.2 digest_0.6.24 evaluate_0.14 glue_1.3.1
graphics_3.6.2 grDevices_3.6.2 highr_0.8 htmltools_0.4.0 jsonlite_1.6.1 knitr_1.28
magrittr_1.5 markdown_1.1 methods_3.6.2 mime_0.9 Rcpp_1.0.3 rlang_0.4.4
rmarkdown_2.1 stats_3.6.2 stringi_1.4.5 stringr_1.4.0 tinytex_0.19 tools_3.6.2
utils_3.6.2 xfun_0.12 yaml_2.2.1
If I include some alphabets in chapter names, it can be successfully built.