When I render a Quarto file using {tinytable} with one specific data set it crashes. If I use {flextable] it renders.
There is no problem running the same code in a normal .r file.
Raw Code
library(tinytable)
dat1 <- structure(list(Miel = c("Dactylurina", "Plebeina", "HypoLiotrigona",
"Meliponula_togoensis", "Meliponula_bocandei"), Nourriture = c(21L,
3L, 55L, 38L, 33L), Sucrant = c(21L, 3L, 55L, 38L, 33L), Médicament = c(25L,
4L, 40L, 49L, 32L), Valeurs.spirituelles = c(1L, 1L, 3L, 1L,
32L), Rituels = c(1L, 0L, 2L, 1L, 0L), Usuel = c(0L, 0L, 0L,
0L, 1L)), row.names = c(NA, -5L), class = "data.frame")
tt(dat1)
Quarto Code
---
title: "Blasted Table"
author: "jrkrideau"
date: today
date-format: iso
number-sections: false
format: pdf
header-includes:
- \usepackage{lipsum}
- \usepackage{siunitx}
- \usepackage{float}
- \floatplacement{table}{H}
- \usepackage{fancyhdr}
- \pagestyle{fancy}
---
It was a dark and stormy night.
```{r library}
#| label: library
#| echo: false
library(tinytable)
```
```{r data}
#| label: data
#| echo: false
dat1 <- structure(list(Miel = c("Dactylurina", "Plebeina", "HypoLiotrigona",
"Meliponula_togoensis", "Meliponula_bocandei"), Nourriture = c(21L,
3L, 55L, 38L, 33L), Sucrant = c(21L, 3L, 55L, 38L, 33L), Médicament = c(25L,
4L, 40L, 49L, 32L), Valeurs.spirituelles = c(1L, 1L, 3L, 1L,
32L), Rituels = c(1L, 0L, 2L, 1L, 0L), Usuel = c(0L, 0L, 0L,
0L, 1L)), row.names = c(NA, -5L), class = "data.frame")
dat2 <- data.table(aa = 1:5, bb = 5:1)
```
```{r plot}
#| label: plot
#| echo: false
tt(dat1)
```