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
0 answers

I was using rmarkdown::render(my_file.Rmd) to render a beamer_presentation wiped everything on my computer

I constructed a beamer_presentation .Rmd file in R Studio, and tried to compile it with rmarkdown::render(my_file). I am running RStudio Version 1.1.463; R Version 1.1.463 and Ubuntu 16. rmarkdown::render stopped RStudio with several errors…
0
votes
0 answers

Aref (from Hungarian babel) in bookdown

In the Hungarian language the definite article depends on the word that comes after the article (it can be either a or az). To account for this, the Hungarian - magyar - Babel (magyar.ldf) introduces the aref (and some related commands) in lieu of…
Tamas Ferenci
  • 424
  • 2
  • 10
0
votes
1 answer

Reduce space between plots ggplot2

I am working with bookdown and the emmeans package. I am trying to render a pdf where I can fit a series of plot with minimal space between each other ```{r 3AeMixEffCmass,out.width = c("32%","32%","32%"), fig.align = "center", fig.pos="!h",fig.show…
BAlpine
  • 111
  • 3
  • 14
0
votes
1 answer

Include css in bookdown book?

I want to include the following .css to make my book wider: .book .book-body .page-wrapper .page-inner { max-width: 1200px !important; } This is my .yml: delete_merged_file: true rmd_files: ["index.Rmd", "creating.Rmd", "subset.Rmd",…
The Unfun Cat
  • 29,987
  • 31
  • 114
  • 156
0
votes
1 answer

Inconsistent figure note line spacing rendering pdf in Bookdown

I am trying to insert a figure note to render in pdf from the following code chunk: ``{r boxfreshAe, out.width = c("49%","49%","49%","49%"),fig.align = "center", warning=FALSE, message=FALSE, error=FALSE, fig.pos="H",fig.show = 'hold',…
BAlpine
  • 111
  • 3
  • 14
0
votes
0 answers

Generate an "edit this document" link on all pages

I really like the "Fork me on GitHub" banner in visNetwork's user manual. For pkgdown, bookdown, and blogdown sites, is there a convenient way to generate such a link in the header of all pages?
landau
  • 5,636
  • 1
  • 22
  • 50
0
votes
1 answer

Bookdown stand alone gitbook with separate pages

I'm not sure if bookdown supports what I'm looking for as I am unable to find out how to do it. I would like to create a gitbook format as a standalone html file, but I want each chapter/section to be it's own page rather than it creating one very…
tempy temper
  • 101
  • 1
0
votes
1 answer

How do I stop rstudio bookdown from trying to generate pdf

I am using Rstudio to generate a document with bookdown. Unfortunately I have to use Windows and don't have xelatex. How do I stop bookdown from trying to generate compile_main.tex? I only want HTML I just want to know what to put in the YAML…
Harlan Nelson
  • 1,394
  • 1
  • 10
  • 22
0
votes
2 answers

Bookdown: Cross-reference figure in another file

I have taken the plunge and am preparing a manuscript for publication entirely in RStudio using bookdown. In the main text I would like to cross-reference figures in a separate supporting information .Rmd file. Let's say this is my main text file…
0
votes
1 answer

ggplot() graphical output link broken ./static/post/

I've followed the advice at https://bookdown.org/yihui/blogdown/static-files.html by adding a .r file with blogdown::build_dir('static') - and by creating a ./static/post directory - what am I missing? I also searched through rbind.io blogdown…
Corey Pembleton
  • 717
  • 9
  • 23
0
votes
1 answer

Automated nicely formated book of lyrics from data.frame using markdown, knitr and glue

This is the extension of previous question: Automating the generation of preformated text in Rmarkdown using R. Here's the task: You have a collection of song lyrics stored in data.frame, the columns of which are: song lyrics (with many \n at the…
IVIM
  • 2,167
  • 1
  • 15
  • 41
0
votes
0 answers

`bookdown`/`rmarkdown`/`knitr`: Hook for execution after output document is finalized?

My PDF-report generation using bookdown includes packing of result files into a zip archive, into which I (currently manually) integrate the PDF document itself as well. Is there any hook that would enable automating the integration of the finished…
balin
  • 1,554
  • 1
  • 12
  • 26
0
votes
1 answer

bookdown/rmarkdown/knitr: links from PDF to local files and windows/OSX

My bookdown report knitted to PDF tries to link to the underlying results like so [This](./somedir/.) directory contains some data. or so [This file](./somedir/specific_data.txt) contains something more specific. On (Arch)Linux using okular (my…
balin
  • 1,554
  • 1
  • 12
  • 26
0
votes
1 answer

Change font size of ATX-header in markdown

I am writing a book with bookdown. Unfortunately, I have no clue how to format (e.g. setting font size) ATX-hearder (#, ##, ## etc.). So far, it does not work via pandoc or preamble.tex. I have tried the following, with regard to this.…
M.Walko
  • 57
  • 1
  • 8
0
votes
1 answer

scientific measurements +- error in Rmarkdown/bookdown tables

What would be the best way to get a good table (with kable, for example) if I want to have a measurement and its error in the form y +- error or y(error), having the usual rules for error: have 1 significant digit in error, the same number of digits…
Javi_VM
  • 505
  • 2
  • 10