Created
August 28, 2023 23:02
-
-
Save jnolis/75e00424afdd09d6c73fe828a880afdf to your computer and use it in GitHub Desktop.
Bingo Rmarkdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
params: | |
board: null | |
n: 0 | |
total: 0 | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(include = FALSE) | |
library(gt) | |
``` | |
```{r, include=TRUE, echo=FALSE} | |
params$board |> | |
gt() |> | |
tab_header("Cascadia R Conf 2023 Bingo") |> | |
cols_align("center") |> | |
tab_style( | |
style = list( | |
cell_borders( | |
color = "#000000", | |
weight = px(2) | |
) | |
), | |
locations = list( | |
cells_body(), | |
cells_column_labels(), | |
cells_title() | |
) | |
) |> | |
tab_style( | |
style = list( | |
cell_text(size="xx-large", v_align="middle", weight="bold") | |
), | |
locations = list( | |
cells_column_labels(), | |
cells_title() | |
) | |
) |> | |
tab_style( | |
style = list( | |
cell_borders( | |
color = "#000000", | |
weight = px(2) | |
), | |
css(`min-height`="150px", | |
`max-height`="150px", | |
`height`="150px", | |
`min-width`="150px", | |
`max-width`="150px",`word-wrap`="break-word") | |
), | |
locations = list( | |
cells_body(), | |
cells_column_labels(), | |
cells_title() | |
) | |
) |> | |
tab_style( | |
style = list( | |
cell_fill( | |
color = "#e0e0e0" | |
) | |
), | |
locations = list( | |
cells_column_labels(), | |
cells_body(3,3) | |
) | |
) | |
``` | |
```{r, results="asis", include=TRUE, echo=FALSE} | |
glue::glue('<p style="text-align: right">{params$n}/{params$total}</p>') | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment