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
4
votes
1 answer

How to integrate shiny in bookdown

How to include a shiny app in a bookdown document? There is an example for including the miniUI in the documentation, but not on how to include an own app. I tried to include "myapp" in the subdirectory "myapp" either as an integrated file (app.R)…
arnyeinstein
  • 669
  • 1
  • 5
  • 14
4
votes
2 answers

Remove all Table CSS from `bookdown::gitbook`

I'm toying bookdown to write some documentation for pixiedust that I feel might be a bit too lengthy for a vignette. I like the layout of bookdown::gitbook, but that, unfortunately, comes with its own table styling that is problematic for me. …
Benjamin
  • 16,897
  • 6
  • 45
  • 65
4
votes
2 answers

style links in a custom block in bookdown

I'm trying to style links in a custom block in bookdown. The custom block type is called "rmdcomment", and I've added the following to the style.css file: .rmdcomment { padding: 1em 1em 1em 4em; margin-top: 30px; margin-bottom: 30px; …
Eric Green
  • 7,385
  • 11
  • 56
  • 102
4
votes
3 answers

CSS Customization in a Bookdown Document

Bookdown's default styling of the control buttons in leaflet maps is not to my taste and I would like to change it. Specifically, I would like to remove the transparency of the control buttons in the top-right and make sure that the button images…
Tiernan
  • 828
  • 8
  • 20
4
votes
2 answers

How do I rescale local images for bookdown / rmarkdown website?

I have a pretty big (~14MB) *.jpeg in my bookdown project (or rmarkdown website, doesn't really matter, I think). This is an external, static image, not touched by R (so far). I'm calling the picture like so: ```{r q-pic, echo=FALSE,…
maxheld
  • 3,963
  • 2
  • 32
  • 51
3
votes
1 answer

customize solution environment

I'm trying to automate the insertion of horizontal rules at the end of solution environments in Quarto; for example: --- title: "Untitled" --- :::{#exr-oneplusone} What is 1+1? ::::{.solution} $$1+1 = 2$$ ****** :::: ::: I'm trying to…
3
votes
1 answer

Cross Reference Subfigures in R Markdown

I have a figure with subfigures in R Markdown. How do I cross-reference these in the text as Figure 1a, Figure 1b etc? ```{r figgy, fig.cap='Caption', echo = FALSE, fig.ncol = 2, out.width = "50%", fig.align = "center", fig.subcap=c('(a)', '(b)',…
R Walser
  • 330
  • 3
  • 16
3
votes
0 answers

Quarto book publish produces "LaTeX Error: File `scrreprt.cls' not found"

When I attempt to re-publish a Quarto Book to an established url on Quarto Pub, I receive an error in the terminal. The error message in the terminal upon which it stops before republishing is: "compilation failed- no matching packages LaTeX Error:…
3
votes
1 answer

How can I explicitly link to the `index.html` file in a Quarto Book

I'm used to using bookdown to create books that don't have to be hosted on a webserver to work properly. I usually keep the _book directory and make it available on a shared drive with my team so that when my users click a link from somewhere else,…
kputschko
  • 766
  • 1
  • 7
  • 21
3
votes
0 answers

How to make footnote into tooltips in Blogdown?

I'm using Rmarkdown to make a blogdown post, and I'm hoping to implement something I saw in Hadley Wickham's Advanced R online book, which is a footnote link that when clicked on opens as a tooltip instead of in the footer of the page. See image…
Noah
  • 3,437
  • 1
  • 11
  • 27
3
votes
1 answer

How to use HTML/CSS for reusable styled boxes in Bookdown

I would like to create reusable sections for my bookdown project. What works: I create a style.css including .titeldefbox{ display: flex; width: 100%; left: 0; top: 0; position: absolute; background-color: darkslategray; height: 30px; …
Marco
  • 2,368
  • 6
  • 22
  • 48
3
votes
0 answers

Create custom markdown-blocks from R code

Is it possible to create a custom markdown block within a R function? Background: I have a custom function which renders a table in a very custom format. At the end of the table I would love to append a standardized text, such as "Table 1: title of…
boraas
  • 929
  • 1
  • 10
  • 24
3
votes
1 answer

Bookdown adding logo to Table of Contents?

I found instructions to add a logo to the top of my Table of Contents (TOC). https://rstudio4edu.github.io/rstudio4edu-book/book-fancy.html However, the edits I made are not reflected in the bookdown website. I have made edits…
1288Meow
  • 319
  • 2
  • 7
3
votes
1 answer

Bookdown figure captions with URL hyperlink

I have been trying to use text references to include figure captions in a bookdown document - see code below: (ref:cap) See this [link](http://pkgs.rstudio.com/) ```{r fig.cap = '(ref:cap)'} plot(mtcars) ``` This works when I compile using the…
ECOSTATS
  • 140
  • 6
3
votes
2 answers

Adding a password to one page of a blogdown site

Is it possible to password protect one page of a website made using R blogdown, published using the free version of Netlify? If not, it it possible to host a password protected RMD file on a blogdown website? I tried using the encryptedRmd package…
missgwolf
  • 356
  • 1
  • 11