Category "r-markdown"

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

Initialise output location outside of rmarkdown::render

Mikko Marttila helped me to find a way to dynamically timestamp files, using the working code below: --- title: "Untitled" author: "Jane Doe" date: "`r Sys.Date

Creating two table of contents with different depths in R Markdown

I created my lecture notes in pdf format using RMarkdown but it has many subheaders. Because of this, I want to create two different table of contents: first ta

R markdown (html_pretty) does not show "not equal" symbol properly

I found that "html_pretty" output does not properly show the unequal math symbol. The following is the minimal reproducible example for it. --- title: "example"

RMarkdown: How to embed an 3D plot?

How to embed 3D plot (rgl) into a html created via knitr? There are several older posts looking for similar outcome. However, when I run all the sample codes i

How to escape single quote in Flexdashboard Navbar Menu?

I'm using R markdown to create a flexdashboard. I'm having difficulty escaping a single quote in the title of one of my navbar menus. I would like for my menu t

How to set size of rpivotTable in rmarkdown document

I would like to include several rpivotTables in an rmarkdown HTML output (document, flexdashboard, other options that result in a standalone HTML file are ok; I

Add tags to post summaries of lithium themed hugo blogdown website

Using the guidance linked to at Add template for taxonomies to Blogdown default theme I was able to add tags to show-up at the top of my posts and create a /tag

Convert Latex to Word using Rmarkdown

I have a latex file called mylatex.tex, and I am trying to convert it to a word document. Does anyone know the step by step process to do this using Rmarkdonw?

rmarkdown knitting error cannot replicate NULL to a non-zero length

I have a rmarkdown which loops to render a list of other rmarkdowns: ```{r} for(i in 0:22){ save(i, file = "/path/to/i.RData") rmarkdown::render("path/to/

Source RMarkdown chunks

Please consider the following. For me, the beauty of writing nearly all analyses in a RMarkdown file instead of in R scripts it that RMarkdown offers the possib

Set the width of regulartable() when exported in word document

Im trying to export a dataframe to word using knitr and regulartable() but my table does not fit in the word page. --- title: "Correlation table" author: "mk" d

kableExtra: Vertical alignment not working in PDF output with many columns

I would like to align all columns in a kableExtra table to the top. The valign = "top" option does not seem to solve the issue here. Also, the third column is

Is `RefManageR` the new `citr` package in R?

I konw that's kind of a meta question but here it is: Is RefManageR the new citr package in R? I am using citr since 1 year now and I just realized that it is n

Styling of Ms Word not working in R Markdown

Have tried styling MS Word document from the markdown but I don't seem to get it write. What could I not be doing right? Below is the code --- title: "Test Docu