Closed nicolaiberk closed 1 month ago
Here's a guess: When compiling a Quarto, if you actually run modelsummary()
command, it will add all the necessary LaTeX packages to your preamble automatically. If you cache the table, you do not run the command, and the necessary prerequisites are not added to the preamble. Thus, you need to add LaTeX commands (documented in the man page) to the preamble manually in the YAML.
Loading tabularray
to header does indeed fix the issue - guess this should have been obvious. Thank you!
YAML:
---
title: "Testing modelsummary 2.1.0"
format:
pdf:
include-in-header:
text: |
\usepackage{tabularray}
execute:
cache: false
---
Bug reports must include:
Hi! Thank you so much for maintaining this package! When using
modelsummary::modelsummary()
in Quarto or RMarkdown, I run into a weird issue: with caching enabled, tables that were generated fine upon the first run are now throwing an error:(Generate document twice to produce error)
sessionInfo()
output[x] Make sure you are running the latest development version of
modelsummary
and its dependencies: https://modelsummary.com/#installation