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

Global chunk in bookdown K-M approach

I am using the K-M approach in bookdown, so each chapter starts with a clean slate when compiled separately. However, I do want some common code (library, loading of larger data sets) to be available globally. To work on single chapters, I can…
Dieter Menne
  • 10,076
  • 44
  • 67
0
votes
1 answer

Blocks types with image (important, warning, ...)

I would like to have blocks with a image on the left. I start using the package in RStudio, but even if I use the type tag it does not work. I think the style that comes with the package does not provide this feature. Is that right?
0
votes
1 answer

R Bookdown image disappears

I am having an issue with bookdown, not sure the reason why. When add images (these are files, so I use knitr::include_graphics) like this: # This is a minimal example I want the image "mas.gif". Where is it? ```{r mas, echo=F, fig.cap="image",…
Javi_VM
  • 505
  • 2
  • 10
0
votes
0 answers

Bookdown not minimizing block headers/sections when clicking on them in table of contents

When I use the bookdown package to generate an html book it exports it with every section header already expanded in the "table of contents" along the left side. When clicking on them it navitates correctly, but does not minimize a section when…
Churly Pickle
  • 323
  • 1
  • 7
  • 15
0
votes
0 answers

Bookdown book displayed from within a Shiny app

I am trying to use bookdown to write a user manual for a Shiny app. I can link the index.html page into the shy app, but that is the only page that displays. The book does not appear. it is in the gitbook format so I should have the outline on…
Joe Hightower
  • 139
  • 1
  • 8
0
votes
0 answers

Equations in Bookdown

I cannot seem to make this work. My equation looks like this in plain text: P[C] >= MPC I can use this to get some display: P[C] >= MPC but when I try, what I think the book is suggesting: $$P\left[C\right]\ \ge\ MPC$$ I do not get an equation…
Joe Hightower
  • 139
  • 1
  • 8
0
votes
1 answer

Bookdown Pandoc Table suppress Numbering

I am working with BookDown for my article. I have three tables. The second table does not contain any caption or label. I am expecting that the third table should take the number 2 but instead it is taking number 3. Is there any way I can suppress…
TheRimalaya
  • 4,232
  • 2
  • 31
  • 37
0
votes
0 answers

Create output-format dependent knitr code

I'm looking to have my rmd file run different code depending on whether I'm compiling to html or compiling to pdf. More specifically, I want to load the latex package enclose. If I want to compile to html, I use the command $$\require{enclose}$$. If…
T.Holme
  • 473
  • 4
  • 17
0
votes
2 answers

How do I build a Bookdown Project?

I'm trying to create my first R Bookdown. I have a project created and two .RMD files created. I'm trying to build the project but all I see under the Build menu option is Configure Build Tools. There is no option to actually build the project. What…
Randy Minder
  • 47,200
  • 49
  • 204
  • 358
0
votes
2 answers

Customizing preamble.tex in bookdown

I started using bookdown to generate a longer report, but came into some touble as I wanted to customize the pdf output. \documentclass[]{} does not work in the preamble.tex file. I think that comand is somehow executed by pandoc beforhand,…
mhwh
  • 478
  • 4
  • 12
-1
votes
1 answer

Python Code and Output in Bookdown pdf are not in multiple lines

I am trying to write python code using rmarkdown in bookdown. The python code is ok. The problem is when the book pdf is generated, some long python codes and sometimes some python codes' output are outside of the pdf page and therefore they are not…
Sharif
  • 163
  • 1
  • 9
-1
votes
1 answer

R Bookdown pdf file: how to remove printer marks

Can someone advise how to remove the printer marks in the pdf file generated by Bookdown?
Frank Wang
  • 21
  • 1
-1
votes
1 answer

Hugo theme similar to bookdown.org?

I am building a website using Hugo and wondering if there is any theme link this one: https://bookdown.org/yihui/blogdown/
Tue Nguyen
  • 73
  • 1
  • 6
-1
votes
1 answer

Generate phd html site using bookdown output from latex file

Hum, i trying to understand how R Bookdown generate different html output to migrate easily my phd actually in latex on a html website. \usepackage[backend=biber,backref=true, natbib=true, isbn=false, doi=true, url=true,…
reyman64
  • 523
  • 4
  • 34
  • 73
1 2 3
67
68