Skip to content

Commit

Permalink
broken
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Jan 15, 2024
1 parent 818e47f commit 78215cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions R/tt_tabularray.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ tt_tabularray <- function(x, caption, theme, width, notes) {
out <- trimws(out)
out <- paste(out, collapse = "\n")

# needed later, apparently
out <- meta(out, "output", "latex")
nhead <- if (is.null(colnames(x))) 1 else 0
out <- meta(out, "nhead", nhead)

if (!is.null(width)) {
tabularray_cols <- rep("X[]", ncol(x))
Expand Down
2 changes: 1 addition & 1 deletion vignettes/tutorial.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tt(x, theme = "void")
To align columns, we use a single string, where each letter represents a column:

```{r}
tt(x, align = "ccrrl")
tt(x, "latex", align = "ccrrl")
```

## Width
Expand Down

0 comments on commit 78215cf

Please sign in to comment.