Category "r-markdown"

KableExtra conditional tables in R

I am working on replicating in a Rmarkdown a report I made in Excel. In some of the results I have tables with conditional columns with color formatting, from r

Plain code chunks for R input in knitr output

Goal In an R/Markdown document that I want to convert to LaTeX I want to set knitr options so that the entire document uses plain code chunks for all code input

Include extra bibliography in R Markdown

I am writing my dissertation using R Markdown (output: Word) and have my primary bibliography from which all citations are based. This renders with no issue: ya

Rmarkdown document not rendering properly in Shiny App

I have a parametrized rmarkdown document based on Shiny inputs. The rmarkdown pdf renders properly when the app runs locally. However when hosted on the shiny s

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