Category "r-markdown"

How can I italicize part of a ggplot2 plot title when knitting the figure in an RMarkdown file?

If I'm just working in R to save a plot as a PNG I'm able to use the {ggtext} package to incorporate basic markdown into elements of my plots, but {ggtext} outp

How to fix pandoc (error 1) in rmarkdown for html output?

I'm using pandoc version 2.18 and R version 4.1.3. I'm using rmarkdown to knit a document into an html format, but repeatedly receive the following error: pando

R error message output goes off the slide in beamer presentation R markdown

I'm using R markdown to make a beamer presentation. When I try to include an error message output from R on the slide it goes off the page. Here is my code: ---

Add or remove "References" in TOC at end of each chapter in bookdown::gitbook

I am compiling a bookdown::gitbook and want to include a "References" header for each chapter in the TOC. Currently, I have included a level 2 header titled "Re

Rstudio Server hangs when creating new Rmarkdown file

I have trouble with running markdown on RStudio Server (1.4.1106) on CentOS7 offline server. When I click new->R Markdown..., R Markdown sign appears in the

How to create a custom example environment for r markdown pdf output?

I am hoping to create a custom-styled example environment within r markdown that renders pdf output. I want something that looks like this or like this, but I s

Reading multiple .Rmd scripts including SQL-queries from a separate .Rmd script

I have created a .Rmd script where I try to read multiple external .Rmd scripts that includes a combination of R and SQL syntax. For this I tried to use: rmarkd

rmarkdown does not render PDFs as batch

No solution offered yet and cross-posted to RStudio community: https://community.rstudio.com/t/rmarkdown-does-not-render-pdfs-as-batch/136316 I have a rmarkdown

Randomize items in rmarkdown transparently

I have the following rmarkdown document: --- title: "Untitled" output: pdf_document date: '2022-04-28' --- ```{r setup, include=FALSE} knitr::opts_chunk$set(ec

Could not convert Tex math in Rmarkdown

I am trying to write an algebraic equation in Rmarkdown but its rending as text as opposed to an algebraic equation. The warning below for reference; [WARNING]

Problems with excessive white space in Quarto document

I have a Quarto (RMarkdown) document which is supposed to display a table showing task completion. The code works well but there is excessive white space displa

How to make Ioslides a solid white background?

Ioslides for Rmarkdown have this gradient background, and I would like it to be solid white. I tried two different ways to remove the gradient effect using a cs

RMarkdown YAML section add author's hyperlink email to footer

In the YAML section of the RMarkdown file, I want write the author's name and email address and have that only appear in the footer of the document. Here is an

Using add_header_row from flextable to create columns of varying widths

I have data as follows: dat <- structure(list(rn = c("type_A", "type_B", "type_C" ), freq = list(c(0, 0, 0, 5, 7, 16, 28), c(2, 1, 0, 5, 0, 8), c(0, 0,

Rendering quietly not working if the chunk has message = FALSE

I want to render an R Markdown file quietly, i.e nothing should be displayed in the console. Let foo.Rmd be the following file: --- title: "Foo" output: ht

Quarto file not producing data table

I am very new to Quarto and I am trying to create an markdown document using it. Everything works well except I am not able to render tables on the output HMTL

Automatically find the best figure dimensions in r?

I am producing many different plots in rmakrdown using ggplot2 and don't want to manually edit their fig.width() ; fig.height() or fig.asp() one by one. Some pl

Rmarkdown: include plot height in resulting html <img> tag

I am working on a larger RMarkdown-site. Due to the size of images on the pages I implemented lazy loading for images using the loading="lazy"attribute of the &

Can't suppress error message in R Markdown?

I'm making a tutorial using RMarkdown and I can't suppress the error message I'm getting. The reason I'm suppressing the error is because the code I'm running

RMarkdown: Error in dir.exists(x) : file name conversion problem -- name too long?

I am working on serial reports with RMarkdown. Since the latest R Update to 4.2.0 I get the error: Error in dir.exists(x) : file name conversion problem -- name