Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
54 views

Overview: With my R/exams exercise provided below I have the problem that the plot output from my figure chunk is included correctly in the HTML output from exams2html() but it is dropped silently in ...
Florian Oswald's user avatar
1 vote
1 answer
102 views

Suppose I have the following RMarkdown document: warnings.Rmd --- title: "Warnings" output: html_document --- ```{r include = FALSE, warning = FALSE} warning("warning 1") ``` ```{...
thothal's user avatar
  • 20.6k
0 votes
0 answers
54 views

In a book I have many figures and many R scripts producing them. It's a pain to go back and find the source file when I'm editing the text and need to change an example. I'd like to define a new chunk ...
user101089's user avatar
  • 4,083
5 votes
1 answer
81 views

I have an rmarkdown project that produces a lot of interactive plotly plots that can switch among multiple json data sources and I'm running into the problem that the html file is getting very large ...
Luther Blissett's user avatar
1 vote
0 answers
50 views

Is there a way to set the default graphics format for files given to knitr's include_graphics() function? Its auto_pdf = TRUE is close to what I want (i.e. it chooses PDF files over files with ...
NicolasBourbaki's user avatar
1 vote
1 answer
52 views

I am trying to print twice using gt from a function defined in a RMarkdown document. Here is my example code: --- title: "illustrate problem" output: html_document --- Define a short ...
Rick Donnelly's user avatar
1 vote
0 answers
88 views

I have the following R markdown snippet: --- title: "testing" author: "jan" date: "10/06/2025" output: html_document --- ```{r setup, include=FALSE} knitr::opts_chunk$...
Jan's user avatar
  • 43.3k
5 votes
1 answer
102 views

I am working with Rmarkdown parent and child files, and using a YAML header to make it so that when I click "Knit" in RStudio on a child document, it compiles the parent (as seen here: https:...
richarddmorey's user avatar
6 votes
1 answer
125 views

In this minimal example we can see that when knitting I will get the output "my-chunk-label". However, if we use "Run Current Chunk" (i.e. green chunk play button in RStudio) the ...
Patrick's user avatar
  • 1,769
0 votes
0 answers
54 views

The code below runs smoothly in R but as soon as I try to knit to pdf there is an error. A file that is clearly in my file library, suddenly can't be read. (library("seqinr") read.alignment(&...
Midnight Mugetsu's user avatar
4 votes
1 answer
151 views

Overview: I'm running knitr on a large number of R/Markdown files (actually R/exams exercises to be more specific), some of which take too long to complete. Hence I want to set a time limit for this ...
Achim Zeileis's user avatar
0 votes
0 answers
263 views

I'm working on a Quarto project in VS code with a .qmd file ("01_data_exploration.qmd") that includes a ggplot2 plot. The plot displays correctly in an interactive R session, but when I ...
Robert Burkhardt's user avatar
1 vote
0 answers
136 views

I am migrating from RStudion to VS Code. When I try to knit my .rmd files in VSCode, I it is stuck on 0%. However, when I write out the rmarkdown::render("") command manually in the R ...
Robert Burkhardt's user avatar
1 vote
1 answer
92 views

I have a function that I want to have different behaviour based on if it is within a quarto document or a markdown document. I don't have access to the file extension of the document the function is ...
vorpal's user avatar
  • 329
0 votes
1 answer
76 views

I am using RStudio to generate documents using R markdown and knitr. I would like to specify the output file name dynamically based on the parameters in the YAML. This basic header works: --- params: ...
Josh's user avatar
  • 1,358
3 votes
1 answer
88 views

I'm using Knitr to generate a PDF report, where each page is dynamically created in a loop, displaying plots and tables side by side. The approach works well for tables, but the plots fail to appear ...
carolinasc's user avatar
0 votes
0 answers
23 views

I am working with a data set that has 93 observations and 17 all numeric variables. My kmeans function runs just fine in R until I try to knit it. set.seed(2025) km.out <- kmeans(cluster_dataset, ...
ddbd1417's user avatar
0 votes
0 answers
65 views

I’m working on an R Markdown project and I’m having trouble getting my plots to show up where I want them in the document. I need to create a loop that prints 3 tables (using kableExtra) and 3 plots (...
carolinasc's user avatar
0 votes
1 answer
116 views

I am using Rmarkdown and Pandoc with a custom template to make a report where I have a table showing the users who have approved the content of a report. In my template, I've put this signature block ...
Benjamin's user avatar
  • 17.3k
0 votes
0 answers
32 views

I'm trying to generate a PDF table using kableExtra in R Markdown where the output PDF dimensions exactly match the table dimensions (no extra white space, no extra text, no page number, nothing else)....
NoNameBoyy's user avatar
0 votes
1 answer
331 views

I am trying to write a report using R-Markdown and tables made with gt_summary but when i export to pdf format, something goes wrong and the table shows up before even the title. I knitted do html ...
Pedro Rizzi de Oliveira's user avatar
0 votes
0 answers
11 views

I'm using the R package elmer, specifically the chat_azure function, to connect to the Azure chatbot. The connection and message exchange works perfectly in R. However, I'm facing an issue when I try ...
Sinval's user avatar
  • 1,427
2 votes
0 answers
45 views

I'm encountering an error when knitting my R Markdown file to a PDF. The error message is as follows: ! You can't use `\relax' after \the. <recently read> ...ort/tbl/leaders/begin_args_int ...
Maxi's user avatar
  • 41
2 votes
1 answer
59 views

When I make a checkered surface by setting smooth=FALSE in the rgl package in R, it appears correctly in my computer's rgl window, but not in knitted R Markdown documents nor in the RStudio viewer, ...
Mapache's user avatar
  • 33
1 vote
0 answers
121 views

I am working in an R Markdown document. I am using the standard markdown headings (e.g. # First Heading) and using the output: html_document: number_sections: true option in my YAML header to ...
sonicseamus's user avatar

1
2 3 4 5
108