Repository navigation
Closed
Description
Prework
- Read and agree to the code of conduct and contributing guidelines.
- If there is already a relevant issue, whether open or closed, comment on the existing thread instead of posting a new issue.
Description
See the reprex below.
Reproducible example
-
Copy the following content into a new file
test.qmd--- title: "test" --- ## Reprex ```{r} #| label: tbl-reprex #| tbl-cap: Reprex gt::exibble |> gt::gt() |> gt::cols_width(char ~ gt::px(100)) ``` ## Session info ```{r} sessioninfo::session_info() ```
-
Render the document to PDF using the Quarto CLI:
quarto render test.qmd --to=pdf
This results in the following error (with latest stable Quarto v1.4.550):
ERROR: compilation failed- error Illegal unit of measure (pt inserted). <to be read again> p l.208 num & c har & fctr & date & time & datetime & currency & row & group \\ see test.log for more information.
Expected result
No LaTeX compilation error. px units should probably be converted to pt by gt internally to avoid the error.
Related
- gt outputs code that produces illegal unit of measure error when generating pdf in Quarto #1417
- gt Table Formatted Incorrectly when I Knit to PDF #1257 (comment)
Session info
sessioninfo::session_info()
─ Session info ───────────────────────────────────────────────────────────────
setting value
version R version 4.3.2 (2023-10-31)
os Ubuntu 22.04.4 LTS
system x86_64, linux-gnu
ui X11
language en_US.utf8
collate en_US.utf8
ctype en_US.utf8
tz Europe/Zurich
date 2024-02-19
pandoc 3.1.12.1 @ /usr/bin/ (via rmarkdown)
─ Packages ───────────────────────────────────────────────────────────────────
package * version date (UTC) lib source
backports 1.4.1 2021-12-13 [1] RSPM
brio 1.1.4 2023-12-10 [1] RSPM (R 4.3.0)
checkmate 2.3.1 2023-12-04 [1] RSPM (R 4.3.0)
cli 3.6.2 2023-12-11 [1] RSPM (R 4.3.0)
curl 5.2.0 2023-12-08 [1] RSPM (R 4.3.0)
digest 0.6.34 2024-01-11 [1] RSPM (R 4.3.0)
evaluate 0.23 2023-11-01 [1] RSPM (R 4.3.0)
fastmap 1.1.1 2023-02-24 [1] RSPM (R 4.2.0)
htmltools 0.5.7 2023-11-03 [1] RSPM (R 4.3.0)
htmlwidgets 1.6.4 2023-12-06 [1] RSPM (R 4.3.0)
httr 1.4.7 2023-08-15 [1] RSPM (R 4.3.0)
jsonlite 1.8.8 2023-12-04 [1] RSPM (R 4.3.0)
knitr 1.45 2023-10-30 [1] RSPM (R 4.3.0)
lifecycle 1.0.4 2023-11-07 [1] RSPM (R 4.3.0)
magrittr 2.0.3 2022-03-30 [1] RSPM (R 4.2.0)
pal 0.0.9101 2024-01-19 [1] gitlab (rpkg.dev/pal@a488ac7)
R6 2.5.1 2021-08-19 [1] RSPM
rlang 1.1.3 2024-01-10 [1] RSPM (R 4.3.0)
rmarkdown 2.25 2023-09-18 [1] RSPM (R 4.3.0)
sessioninfo 1.2.2 2021-12-06 [1] RSPM (R 4.2.0)
testthat 3.2.1 2023-12-02 [1] RSPM (R 4.3.0)
xfun 0.41 2023-11-01 [1] RSPM (R 4.3.0)
yaml 2.3.8 2023-12-11 [1] RSPM (R 4.3.0)
[1] /home/salim/.software/managed/r
[2] /usr/local/lib/R/site-library
[3] /usr/lib/R/site-library
[4] /usr/lib/R/library
──────────────────────────────────────────────────────────────────────────────
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]Setting `cols_width()` in `px()` fails for Quarto PDF output (ilegal unit of measure)[/-][+]Setting `cols_width()` in `px()` fails for Quarto PDF output (illegal unit of measure)[/+]Fix rstudio#1582
Merge pull request #1595 from kbrevoort/fix1582