Problem with procedural tabset and ggplot #7282
Replies: 3 comments 2 replies
-
Your example is way too complex in terms of code and style and is not reproducible. Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
The end.
```` |
Beta Was this translation helpful? Give feedback.
-
Just a suggestion that you could try to use child document to create your tabset content dynamically. See this example: https://examples.quarto.pub/create-tabsets-panel-from-r-code/ Using Not sure this is related to your issue, but this is best practice with knitr |
Beta Was this translation helpful? Give feedback.
-
Hello, I managed to resolve the problem of the figure being offset. It seem it was caused by a ligne with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello,
I'm using quarto 1.4.424 on windows 11 to create a report.
In this report, I need to create a plot and tables for multiple variables. I decided to use procedural tabset with the
output: asis
option to not create 50 code block. But I encounter 2 problems:summary table
andstatistical tests
sections. I tried yesterday and it wasn't finished even after 10 hours while it take only 10 minutes if I comment the code of those sections (if I launch this code in RStudio it take about 40 minutes to run the tests and create the tables.The picture next highlight the second problem I got. The plot should be under the

V3_CTS_1_DIC
section, not theV3_CTS_2_DIC
:Sorry for the long code. I can't share all my data but the object res[[i]][["data"] correspond to a dataframe with the variables to test as the columns and the participants as the rows (this concern a longitudinal study with 1 to 4 timepoints).
The VarInfo variable is a dataframe that list the variables that need to be tested and their categories.
The text file I attached correspond to the output of the cat function by the code bellow.
ProceduralTabset.txt
Does someone know how I can resolve those problems?
I thank you in advance.
Pierre
Beta Was this translation helpful? Give feedback.
All reactions