Skip to content

Quarto does not render with some {gt} table IDs #3247

@AlbertRapp

Description

@AlbertRapp

Bug description

I'm not sure whether that's a {gt} or a Quarto problem. Since the {gt} code itself runs, I put it here.

Using IDs in {gt} tables causes issues with rendering a Quarto document. I don't know what the error means so I'll just put it here.

Error running filter /opt/quarto/share/filters/quarto-pre/quarto-pre.lua:
/opt/quarto/share/filters/quarto-pre/quarto-pre.lua:2555: attempt to concatenate a nil value (local 'v')
stack traceback:
	/opt/quarto/share/filters/quarto-pre/quarto-pre.lua:2562: in function </opt/quarto/share/filters/quarto-pre/quarto-pre.lua:2560>

The code that caused this error was (that's also the whole file)

ggplot2::mpg |> 
  gt::gt(id = 'myTbl')

Version info

RStudio: 2022.07.2 Build 576
OS: Ubuntu 20.04.5 LTS
Quarto: 1.2.267

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Metadata

Metadata

Assignees

Labels

duplicateThis issue or pull request already exists

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions