1,376 questions
0
votes
0
answers
30
views
Vertical stub boarder line in gt table not removed in my pdf
I wanted to remove the vertical stub boarder line in my gt table. The line is removed in the notebook output, but it is not in the pdf. I have my MRE below. Any ideas what i should do?
---
title: &...
0
votes
0
answers
39
views
RStudio Server scans all folders if _quarto.yml is existed [closed]
I want to use Quarto in RStudio Server. My folder has lots of smaller files. The Rstudio is stopped to work when I open a project which contain a _quarto.yml file.
It seems RStudio scan all folders ...
0
votes
0
answers
149
views
Error: Package or Namespace Load Failed for janitor in Quarto Only
When I ran the following Quarto file
---
title: "Step 2: Data Import and Schema Sanity Check"
author: "Dr. James Daniel"
date: today
format:
html:
toc: true
code-fold: ...
4
votes
2
answers
96
views
kable_minimal() giving stripes in Quarto table HTML output
I have a Quarto doc rendering to HTML written in R and I would like a table without stripes. All of the kableExtra tables give me stripes. How do I get rid of the stripes?
---
title: "Test"
...
1
vote
1
answer
73
views
gt table output in quarto PDF duplicates header text and places it to the left of table body instead of above it
Here is a simple qmd file.
---
title: "Untitled"
format: pdf
---
```{r, echo=FALSE}
library(gt)
exibble |>
gt() |>
tab_header(title = "title")
```
My output looks like ...
0
votes
0
answers
52
views
Problem installing the Hyphen package in Quarto / R Studio
I'm using Quarto 1.6.42 in R Studio (R 4.5.2) on a Linux Ubuntu 24.04 environment to generate a PDF document.
When I try to render the document to generate the PDF file, I receive the error message ...
0
votes
1
answer
59
views
How to ensure speaker notes visibility in a revealjs presentation created with quarto, for a slide with multiple fragments?
I have a slide in a revealjs presentation created with quarto, with several fragments and an incremental list (example below).
Ideally, the speaker notes should be visible at specific moments, as ...
1
vote
1
answer
56
views
(::: {#thm-} ## title} problem folding math envs and outline
I have an issue with Quarto in VS Code whith folding and outlines.
Math envs have the syntax:
::: {#def-system}
This is a definition
:::
However, to give the enviroment a title you are suppose to use ...
1
vote
1
answer
74
views
Quarto trying to render script files
I'm putting together an academic website with a publications section. I've written a script that will turn a bibtex file into article-by-article quarto and bibtex files that then use a custom template....
2
votes
1
answer
108
views
Displaying R Code and Plots Side by Side in a Single Quarto Chunk
By default, when rendering the HTML document from a single Quarto chunk that includes the code for six kernel density plots, each code appears above its corresponding plot.
I would like to generate ...
1
vote
0
answers
76
views
Passing the font-size to Quarto
I'm having a problem passing the font size that I chose within the itables package to be the font size that Quarto will use for that specific table. What I'm doing currently is
options.lengthMenu = [5]...
0
votes
1
answer
39
views
uncenter text in quarto custom cross reference type
In _quarto.yml I have defined a custom crossref type
crossref:
custom:
- key: axm
kind: float
reference-prefix: Axioms
Now within my quarto doc files I define the axiom environment
...
0
votes
0
answers
56
views
Modify content of _quarto.yml and/or styles.css for my Quarto website development
Attached here are two screenshots. The one I write 1 and 2 is my desire for the left hand side header while the second contains what I want on the left hand side on the blue header. My focus is on the ...
5
votes
2
answers
169
views
How do I print only n lines of code output in a Quarto document?
This works but I would like something more user friendly. Is there not a chunk option that sets the R code output to be a certain number of lines?
---
title: "Glimpse Output Example"
format: ...
2
votes
1
answer
88
views
gtsummary tables rendering out of place in pdf
I have been using a script from a year ago, where the tables rendered in the correct places but am wondering if anything has changed with the rendering to pdf command? Just as an example, if I use:
...
0
votes
0
answers
64
views
How can I access the objects from quarto pre-render scripts while rendering documents?
I have a Quarto book project where I need a lot of steps to prepare the data and plenty of functions to get single measures needed for the text. So it would be nice to keep data preparation and ...
1
vote
1
answer
63
views
How do I change the corners of the code output to match the background?
When I render the revealjs document, the code output div/ section has the corners which are not the same background color as the output (see attached image with red arrows). Can this be fixed to match ...
0
votes
1
answer
73
views
Using rgl plots in Quarto: HTML and PDF
In a book I'm writing using Quarto, I'd like to include rgl plots and produce HTML (dynamic) and PDF (static) versions where the plots look more or less the same.
I'm nearly there, but with some ...
0
votes
1
answer
208
views
Why won't my quarto document recognize relative pathways when rendering or previewing?
So I have a quarto document where I am working in python. When I run the following line in positron, it works perfectly:
LeavesRadiance = pl.read_csv("Fieldwork/Leaves/Leaves_radiance.csv")
...
1
vote
0
answers
79
views
shinylive in quarto doesn't work in docker container running on Mac
I am rendering a quarto document with shinylive code/extension through a docker container on a Mac. I run into this error:
> docker run --platform=linux/amd64 --rm -u 1000:1000 -v "${PWD}"...
3
votes
1
answer
90
views
How to change the text size in a portion of the body of a pdf document?
Is there a way to change the text size to a section of text when the output is a PDF? In the example below, I would like the hint text to be smaller.
---
title: "Untitled"
format: pdf
---
# ...
2
votes
0
answers
141
views
Is there any consequence to naming code chunks using the R Markdown style within quarto?
When naming code-chunks in R Markdown, the name of the chunk is given within the curly braces at the beginning of the chunk:
```{r some-name}
#some code
```
In quarto, the R Markdown style naming is ...
0
votes
1
answer
127
views
using extensions from CTAN in Quarto with Mathjax (html output)
I'm trying to use the statmath CTAN package (https://ctan.org/pkg/statmath?lang=en) in Quarto (following https://github.com/quarto-dev/quarto-cli/discussions/1620#discussioncomment-3296389); here's a ...
0
votes
0
answers
106
views
Cannot access R or Python objects in R and Python Quarto Document
I am using Quarto and VSCode to try to run Python and R together. I'd like to be able to access R objects in python or python objects in R. If I render the document below, it works as expected. ...
0
votes
0
answers
31
views
Parametrizing the title of a Quarto dashboard
I am trying to parametrize the title of a Quarto dashboard. I have the following file (title.qmd):
---
title: "Name: {{< meta params.name >}}"
format: dashboard
params:
name: "...
3
votes
1
answer
103
views
How to make a slide of two columns one static and other scrollable?
The below example shows two slides.
A scrollable container that takes up the entire slide, with a scrollable image. This works.
I want the full picture on the left side and on the right side the ...
0
votes
0
answers
55
views
Define a new figure option for name of source file
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 ...
0
votes
0
answers
101
views
Is using Quarto with Julia & Plotly (via Plots) broken?
I used to be able create HTML output from Quarto using Julia and Plotly to get semi-interactive figures.
But it does not work anymore and I am not able to figure out why. Here is an MWE.
_quarto.yml ...
0
votes
1
answer
69
views
How can I make the text go out of the slide margins?
How can I make the text go out of the slide margins in a Quarto presentation?
The following example sticks to keeping the text inside the margins, but I want it out of the margins just for that slide.
...
2
votes
0
answers
83
views
Why doesn’t error = TRUE work inside a callout block in Quarto? [closed]
I’m writing a Quarto document and trying to deliberately trigger an error in R for demonstration purposes. I’ve noticed that it works as expected until I place it inside a callout block.
I am just ...
0
votes
0
answers
61
views
Newline in GT table, rendered in word
I have some table cells in a GT table I would like to have a new line in. Works great when output to html but when I tried docx the newlines are not showing up. MWE:
---
title: "Testing docx ...
0
votes
1
answer
85
views
How to programmatically generate plotly (or ggplotly) charts inside Quarto using loops or functions?
I'm trying to create multiple plotly charts inside a Quarto panel-tabset using a loop or function, but the charts either don't render at all or appear outside the tabset structure.
Here's my code:
---
...
2
votes
1
answer
151
views
How to include a leaflet map in Quarto closeread document?
I'm making a Quarto document with the closeread "scrollytelling" extension. Right now, when I attempt to create a leaflet map from an R code chunk, the resulting HTML file does not show the ...
4
votes
1
answer
103
views
fixest etable size issue when using Quarto to render to html
#| warning: false
#| cache: true
#| results: "asis"
#| label: tbl-ols
#| tbl-cap: Estimates"
library(fixest)
ols <- feols(Sepal.Length ~ Petal.Length, data = iris)
etable(ols,
...
1
vote
1
answer
95
views
Positron/vs-studio-code How to highlight `:::` the same as brackets?
I am trying out Positron that builds upon VS studio code to be more data science centric. I use quarto to create documents and ::: is a special fence to create div for to do certain like make text ...
3
votes
1
answer
103
views
How to synchronize tabs in Quarto dashboard
I'm creating a Quarto dashboard. Imagine we have multiple pages with the same tabs. Now I would like to synchronize these tabs across pages. So when you click on tab 2 on page 1, than on page 2 it ...
3
votes
1
answer
80
views
How to make nested tabs sticky in a Quarto dashboard?
I'm creating a Quarto dashboard with a nested tabs. When the output is pretty long I would like to have the nested tabs to be sticky at the top, so when you scroll down you can still see the tabs. ...
2
votes
1
answer
84
views
How to change the font, size and color of texts inside a tabset?
I have a Quarto document that is converted to HTML. In this document, I use the .panel-tabset class to create tabbed panels containing graphs and text produced in R. I want to adjust the font, colour, ...
2
votes
1
answer
112
views
How do I create a black and white callout in Quarto for pdf?
I am rendering a document in Quarto to pdf and want all the call outs (warning, notes, etc) to be in black and white. I've been trying to create a .sty-file with the following code:
\usepackage[most]{...
0
votes
0
answers
40
views
index page with listing on Quarto blog - white space
I am building a quarto blog site and it seems that regardless of the quarto themes I use, somehow I end up with a index listing page that has excessive white space between the left edge of the ...
2
votes
0
answers
57
views
How to resize/fit Altair chart in Quarto dashboard container?
The Quarto docs state that Altair charts resize themselves to fit their container within dashboards.
My experience is that this is true for alt.Chart(), but not if I concatenate multiple charts via ...
2
votes
1
answer
47
views
How to add multiple rows in a tabset within a Quarto dashboard?
Consider this layout example for a Quarto dashboard containing tabsets, taken straight from the docs:
---
title: "Palmer Penguins"
format: dashboard
---
## Row {.tabset}
### Plots
```{...
0
votes
0
answers
30
views
Unfilled Space Between Columns in Quarto
I'm trying to creat this effect in Quarto Reveal.js presentations with a space between two or more columns of text, which is not filled with background color set for individual columns.
For now I'm ...
2
votes
2
answers
79
views
How to assign a RGB background color to a Quarto dashboard valuebox?
Consider the following quarto dashboard:
---
title: "Test"
format: dashboard
---
```{python}
#| content: valuebox
#| title: "Test Box"
dict(value=10, color="red")
```
...
0
votes
0
answers
56
views
quarto dashboard shiny package not found
I have a quarto dashboard that makes use of shiny. The test.qmd file starts like this:
---
title: "Test"
format: dashboard
server: shiny
---
...
When running quarto preview function within ...
2
votes
1
answer
85
views
Custom div class in Quarto beamer output
I would like to know if it's possible to create a custom div class in a Quarto document with a beamer output format. I have tried with adding a custom environment with include-in-header: preamble.tex, ...
1
vote
1
answer
50
views
Is there a way to make column-margin coexist with overflowing divs?
I am writing a simple document in quarto. I need some more space to accommodate some graphs at one point in my document, so I would like to use the following:
:::{.column-page-left}
[some graphs]
:::
...
0
votes
0
answers
52
views
Bash command won't execute in Quarto code block
When I tried to run the tutorial code of running Bash command from Quarto documentation (https://quarto.org/docs/computations/execution-options.html#fenced-echo), it wouldn't work and return nothing:
...
1
vote
1
answer
51
views
How to create links in rmarkdown kable when the column is collapse
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://...
0
votes
1
answer
52
views
Dynamic/Parameterized Image in Quarto Report
How do you add an image to a quarto report that is dynamic based on parameters in your YAML?
For example if I had the following YAML:
---
title: "dynamic image stack overflow question"
...