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

Will `_bookdown.yml` work in `blogdown` the same as `bookdown`?

I want to change the label of table and figures to another language (e.g., Chinese, and change Figure 1.1 to 图1.1). I found that, if I create a _bookdown.yml file with the following content: language: label: fig: '图' tab: '表' and put the…
Liang Zhang
  • 753
  • 7
  • 20
0
votes
1 answer

Avoid names on list of plots

In R Bookdown I have generated a list of plots (ggplots). I want to show them all, so I just write the name of the variable ListOfPlots But I get the names of the list like # # ListOfPlots$plot1 (Plot 1) # #…
Javi_VM
  • 505
  • 2
  • 10
0
votes
1 answer

R bookdown: list of abbreviations with LaTeX nomenclature package

Generating an index in R bookdown works perfectly well. Adding a list of abbreviations with the nomenclature package is more difficult: I added to preamble.tex \usepackage{nomenclature} \makenomenclature And then I include a file calling the…
NicolasBourbaki
  • 853
  • 1
  • 6
  • 19
0
votes
1 answer

Altmetric badge not showing in rmarkdown document

I am trying to get an Altmetric badge to show in an html Markdown/Bookdown document with no luck. I am using the "default" badge that appears here: https://www.altmetric.com/products/altmetric-badges/ See a minimal version of the code…
Gorka
  • 3,555
  • 1
  • 31
  • 37
0
votes
1 answer

Subplots in bookdown repeating the caption

The section of the bookdown manual on generating figures demonstrates a case where include_graphics() can be given a vector of paths of length > 1, producing a number of subplots with a single caption: However, when I try this in my fork of…
jimjamslam
  • 1,988
  • 1
  • 18
  • 32
0
votes
1 answer

Why figure numbers with two digits separated by dot are shown only in html_document2?

Here is simple RMarkdown document with two sections and two images. --- output: bookdown::html_document2: default bookdown::word_document2: default bookdown::pdf_document2: default --- \newpage # Part 1 Part 1 starts here. See Figure…
N0rbert
  • 559
  • 5
  • 22
0
votes
1 answer

Error in running bookdown package

I have multiple Red files that I am joining with bookdown. This has gone OK until I got the following error message label: error_chunk Quitting from lines 2941-2947 (bookdown-demo.Rmd) Error in model.frame.default(formula = glu ~ age,…
0
votes
2 answers

How do I include Graphs/Plots/Charts in epub generated by bookdown?

I tried generating the epub for the bookdown demo, and the resulting epub did not contain the graphs and charts. I was able to see the graphs and charts in the generated PDF. https://bookdown.org/yihui/bookdown-demo/ I ran…
Jerry Thomas
  • 305
  • 3
  • 7
0
votes
1 answer

R Bookdown run script / purl before building book (with Build Book button)

I'd like to run an R script before building a bookdown book. The script runs purl() on specific Rmd Files which again are included in the book (an thus need an update since the Rmd Files might have changed). I'd like to automatize this since it's…
Ratnanil
  • 1,641
  • 17
  • 43
0
votes
1 answer

Is it possible to change to documentclass 'scrbook' in bookdown?

I want to change the documentclass to 'scrbook'. In the index.Rmd file of minimal bookdown example I changed the line documentclass: book to documentclass: scrbook but this didn't work. I got the following error message: Latexmk: applying rule…
petzi
  • 1,430
  • 1
  • 17
  • 32
0
votes
1 answer

error when uploading to bookdown.org

I tried to upload my book to bookdown.org. After half an hour (I am wondering why there are so many files uploaded to RStudio Connect) I got an error 2017/10/09 18:46:51.957709974 Quitting from lines 28-38 (wiss-arbeiten.Rmd) 2017/10/09…
petzi
  • 1,430
  • 1
  • 17
  • 32
0
votes
1 answer

markdown and bookdown -run by factors

I am brand new to markdown language. I am using bookdown to generate reports. I have two questions: If I have one stacked dataset with one column being a factor... Is it possible to run separate reports by each factor level (note: I know how to do…
user1638567
  • 69
  • 2
  • 5
0
votes
1 answer

Bookdown does not print table

No reproducible example here as bookdown has too many dependencies, so I hope the description is enough. With current versions of bookdown, the new furniture package, etc and related packages, the following fails to generate a table in the HTML…
user2292410
  • 447
  • 4
  • 13
0
votes
0 answers

Emojis are not displayed in PDF generated by bookdown

I'm using bookdown to generate both a website and a pdf. I've added some emojies using the r package emo. There is no problem when building the site, they are displayed ok. But when creating the pdf these emojis are not displayed, although they are…
Pablo Casas
  • 868
  • 13
  • 15
0
votes
1 answer

htmlwidgets and shiny apps can't be viewed on E-Books Output formats in bookdown

At this moment is not possible to see neither htmlwidgets nor shiny apps on E-Books output formats in bookdown. Even if I download the example: bookdown: Authoring Books and Technical Documents with R Markdown, I am not be able to see a screenshot…
1 2 3
67
68