Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
92 views

I'm fairly new to rmarkdown but had a question about images. I'm trying to generate a document that displays images from the Web (i.e., accessible with a URL, not a file path on my computer). The ...
Peter Thompson's user avatar
2 votes
1 answer
73 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
2 votes
1 answer
114 views

I'm doing an analysis of data saved in Postgres and SQLite databases. There, a lot of columns have underscores as separator. E.g. area_m2, area_ha. Plotting with ggplot2, I have no problems with the ...
Tobias Schula'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.7k
2 votes
1 answer
143 views

I have a regular parameterized Rmd report that generally works fine. Periodically I need to include a complete .md file as a preface to the normal content, and that second doc contains references to ...
r2evans's user avatar
  • 167k
0 votes
0 answers
55 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
0 votes
0 answers
40 views

I Always work with 3 windows for run a Latex file, in a specific group using Tinitex or Knitr in R (Repl). In group 3 include commands (set working directory and name file latex) to render or compile ...
Rodrigo_BC's user avatar
5 votes
1 answer
82 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
2 votes
1 answer
122 views

I have a markdown file that loops through a bunch of datasets, make figures and tables from them and saves as one html file. This file is called internally from a function the user runs. If the user ...
Elizabeth Babcock's user avatar
1 vote
0 answers
55 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
2 answers
66 views

Is there a way to adjust font size and/or colour of message() or print() output when compiled with knitr? Example: a <- sum(rnorm(10)) trigger <-ifelse(a>0, TRUE, FALSE) if (trigger==TRUE) ...
FlorianFH's user avatar
1 vote
1 answer
57 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
1 answer
51 views

I created a data.frame that I would like to show as a table: df <- data.frame(A=c("a","b"), B=c("[link](http://stackoverflow.com)","[link](http://...
ramiro's user avatar
  • 115
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
1 vote
1 answer
74 views

I am encountering a really strange bug in rendering plain lists in Rmarkdown. Interestingy, I can only reproduce if R (or Rscript) is running non-interactively. Consider this file (save as ...
Andreas's user avatar
  • 1,220
5 votes
1 answer
107 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
3 votes
1 answer
109 views

I like to include child Rmd documents from a main Rmd document when drafting "big" papers, because this helps me divide work up and also prevents conflicts when multiple people are working ...
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
1 vote
1 answer
84 views

I have an HTML document with many tables created with Quarto (in R). I created these with kableExtra (nicer visualisation than DataTables). With the help of a workaround I have now been able to insert ...
an_ja's user avatar
  • 439
0 votes
0 answers
55 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
0 votes
2 answers
88 views

I'm thinking this is impossible, based on everything I can find, but will try asking. I am hoping to generate two 'identical' HTML files with a single knit. The first would programmatically have a ...
Mark Friedman'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
44 views

every time I try to knit my markdown file it comes up with the same error: Sorry, but C:\Users\xxxx\AppData\Local\Programs\MiKTeX\miktex\bin\x64\pdflatex.exe did not succeed. ! The log file hopefully ...
Jade Kierans's user avatar
0 votes
0 answers
268 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
0 votes
0 answers
42 views

I have an integrated Seurat object with approximately ~480k cells, integrated using the sketch-based method detailed here (leveraging the on-disk storage capabilities of BPCells). I keep getting this ...
user29769413's user avatar
1 vote
0 answers
143 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
4 votes
1 answer
70 views

Backrgound I'm working on a R Mardkown document which I'm renderring using the knitr package. The document uses Swift as a custom enginge. I'm defining the Swift engine as follows: ```{r, setup, eval=...
Konrad's user avatar
  • 18.8k
1 vote
1 answer
93 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
0 answers
49 views

I am trying to make a set of tables in quarto to export into a docx file. The following code outputs a table when you render but it ignores the space formatting applied. Any idea how to work around ...
TheCodeNovice's user avatar
0 votes
1 answer
78 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
1 vote
1 answer
46 views

I'm using Knitr to generate a PDF report where each page is structured using the multicol environment. The layout consists of two columns: The first column contains a table. The second column contains ...
carolinasc's user avatar
3 votes
1 answer
100 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
1 vote
1 answer
75 views

I want to reuse code chunks. It works when I do the following: # Reusing Code Chunks {.tabset .tabset-pills} ```{r, ref.label='a-chunk-not-in-my-example-1'} ``` ## 1st model ```{r, ref.label='a-...
R_novice's user avatar
0 votes
0 answers
27 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
1 vote
1 answer
40 views

I want to place a table using table1() function with knitr()and because the table has long rows, I am using longtable=T within kable(). Because I'm using longtable=T, the table starts right after the ...
Stats_Beginner'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
1 vote
1 answer
67 views

I have a simple Rmarkdown file: --- title: "My R Markdown Example" output: html_document --- library(texreg) model <- lm(mpg ~ cyl, data = mtcars) knitreg(list(model), caption = "...
John-Henry's user avatar
  • 1,859
0 votes
1 answer
127 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
3 votes
1 answer
224 views

I want to move the R code and its output to the right in a Quarto-rendered PDF document. Could you help me achieve this? Below is the YAML header I am using: --- title: | \huge \textbf{Title} format:...
MYaseen208's user avatar
  • 24.1k
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
7 votes
1 answer
250 views

I'm rendering a Quarto document to HTML which contains a code chuck that generates more than 26 figures, to which I'm adding subcaptions. Quarto uses letters to sub-caption figures. In the English ...
Eric Krantz's user avatar
  • 2,339
0 votes
1 answer
345 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
1 answer
45 views

When knitting the below RMarkdown document the caption texts for both the base R plot and the flextable output are shown. The caption text for the huxtable output is, however, not. Why is that and how ...
Patrick's user avatar
  • 1,769
0 votes
0 answers
15 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
94 views

I'm encountering an error when knitting my R Markdown file to a PDF. The error message is as follows: ! Missing $ inserted. <inserted text> $ l.739 ... \multicolumn{1}{c}{0.046^{...
Maxi's user avatar
  • 41
2 votes
0 answers
46 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
34 views

I'm working in RStudio and am instructing knitr to include a JavaScript code chunk: ```{js, echo=FALSE} import { MyModule } from './js/mymodule.js'; [other code] ```. However, the JS engine is ...
TobyRush's user avatar
  • 766
2 votes
1 answer
62 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
4 votes
1 answer
220 views

It used to be possible to get an informative traceback when rendering R Markdown non-interactively, where the traceback would only show function calls for code within the R Markdown notebook, as long ...
Kelly Sovacool's user avatar
1 vote
0 answers
127 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