Questions tagged [bookdown]

bookdown is an R package for authors to write books and long-form articles using R Markdown

The bookdown package is an R package for authors to write books and long-form articles using R Markdown. For more information, see https://bookdown.org.

1019 questions
0
votes
1 answer

Create "on this page" section in RBookdown

I've noticed that many books built using RBookdown will have an "on this page" section in the upper right hand corner (displays book subsections). You can see what I'm referring to by looking at Hadley Wickham's "R4DS" book here:…
Mishalb
  • 153
  • 7
0
votes
1 answer

Minimal Bookdown book does not render properly. How can i fix this issue?

I am following the instruction in Authoring Books with R Markdown relative reproducing to the minimal bookdown book. Getting started. https://bookdown.org/yihui/bookdown/get-started.html The easiest way for beginners to get started with writing a…
123blee
  • 87
  • 1
  • 7
0
votes
1 answer

Add code to Bookdown gitbook template before TOC

I'm creating a gitbook using bookdown, and the designer wants to put a banner at the top of the book, that is, across the entire page above both the TOC and the chapter text. If I use the before_body attribute in the YAML, bookdown inserts the code…
leviemb
  • 49
  • 6
0
votes
1 answer

Align text and images in a table - pdf output

I am producing a pdf document using bookdown. In the document I have a table and in some of the cells in the table I have png images. I can successfully build the book, but the alignment of figures and text does not match. It looks like all the text…
flee
  • 1,253
  • 3
  • 17
  • 34
0
votes
1 answer

Unable to install Bookdown via devtools on Big Sur

As the title says, I am unable to install Bookdown via devtools on macOS Big Sur: Downloading GitHub repo rstudio/bookdown@HEAD Downloading GitHub repo rstudio/rmarkdown@HEAD Installing 1 packages: tinytex Installing package into…
Steven Van Impe
  • 1,153
  • 8
  • 15
0
votes
1 answer

Knitting .Rmd file in Rstudio hangs when using a custom .csl file for bibliography

I am writing a manuscript using R Markdown and am trying to knit the document with a custom csl that I got from the Zotero Style Repository (for the journal Environmental Entomology). When I try to knit, the R Markdown pane shows that it progresses…
Jake
  • 196
  • 1
  • 18
0
votes
1 answer

Bookdown (gitbook) produces empty HTML

I am currently working on a book which I want to knit into a GitBook. Yesterday the output looked amazing (thanks to bookdown). Today, I modified just the simplest content of my book and tried to knit it again. All resulting HTML-files were empty,…
ChrisB
  • 3
  • 1
0
votes
1 answer

Confusion about bookdown structure

I have spent a very frustrating day trying to figure out how to use Bookdown to put together a simple course syllabus, using the chapter structure for weekly course units. The first confusion was to do with the mismatched chapter numbering in the…
0
votes
1 answer

Bookdown: Produce only PDF, no HTML

I have a large bookdown project. My YAML header below. My only desired output is a PDF. However, bookdown by default produces a HTML as well. This makes compilation take more time, and also uses more caching space on my disk. Any chance I can…
broti
  • 1,338
  • 8
  • 29
0
votes
1 answer

Why can I no longer update my bookdown book?

I am working on a book using rbookdown and a short while ago it stopped generating an up-to-date copy when I knit the index.Rmd file - it continues to generate an older copy. I have made minor edits to every chapter and none are coming through.…
pumphandle
  • 83
  • 5
0
votes
1 answer

Rendering of bookdown book fails with pandoc error code 137

I am rendering a book with bookdown to PDF, that uses pandoc under the hood. The rendering fails with: "pandoc document conversion failed with error 137" I cannot find out what the error stands for. Any ideas?
jens_laufer
  • 190
  • 3
  • 13
0
votes
1 answer

Huxtable package for R: How to correctly reference huxtables in bookdown when outputting to Word

Using the example here, I am able to create a table & reference it using huxtable & bookdown as long as I output to pdf. The same does not seem to work with MS word. Here is my sessionInfo in case it helps: R version 3.6.1 (2019-07-05) Platform:…
ECOSTATS
  • 140
  • 6
0
votes
0 answers

Where is the Data Stored for Knitr Tables Generated in Bookdown?

I am starting to write a simple book using Bookdown. I note that tables and figures can be generated using Knitr. However, I'm struggling to see where the data for a table or a figure is stored. The example provided at:…
Poul
  • 5
  • 4
0
votes
1 answer

Code chunk works in R markdown file interactively, but not when I "build book" with bookdown

I'm working on an electronic book using the bookdown package. I'm about 31 chapters in and have had very few problems up to this point. One of my chapter Rmd files includes the following code chunks: library(dplyr) set.seed(123) df <- tibble( x =…
Brad Cannell
  • 3,020
  • 2
  • 23
  • 39
0
votes
1 answer

Bookdown::gitbook rendering two-level lists to code blocks

Following the Bookdown manual, I'm trying to create a two-level list for gitbook output. Bookdown says I should do this: + one + two + two-a + two-b Which should look like one two two-a two-b But instead Bookdown seems to be ignoring…
leviemb
  • 49
  • 6