R is for
Authoring!!

OOH Session #103…
Knitting Kables

Open Office Hours
(November 07, 2025)

  • Recap session #102
  • Today’s topic(s):
  • Shared problem-solving

Recap of Session
#102:

lab quarto extension

Warning

We ran into a scenario where lab “sees” but DOES NOT. Many possible solutions identified by & , all aimed at making the kernel more easily findable – the installation location matters (to , not lab).

  1. open (not IDE)
  2. install packages
  3. run installspec
install.packages(c("repr", "IRdisplay", "evaluate", "crayon", "pbdZMQ", "devtools", "uuid", "digest", "IRkernel"))

IRkernel::installspec(user = FALSE)
1
we DID NOT specify user = FALSE – additional recommendation is to access as admin (right–click before entering). This is more likely to place the kernel in an accessible location (to all programs).

Note

…your Notebook will show rendered previews of elements like Callouts, Divs, Mermaid charts, as well as other Quarto elements…

LET’S CHECK IT OUT!!!

Today…

Knitting Kables

Basic kable

```{r}
#| label: tbl-iris
#| tbl-cap: flowers <br> {{< iconify streamline-plump-color:potted-flower >}}
#| output-location: column

knitr::kable(head(iris[1:3, ]),
      col.names=(c("sl", "sw", 
      "pl","pw","spec")))
```
1
object needs to be “square”
Table 1: flowers
sl sw pl pw spec
5.1 3.5 1.4 0.2 setosa
4.9 3.0 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa

Session Info (November 07, 2025) Rendering:

R version 4.5.0 (2025-04-11 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)

Matrix products: default
  LAPACK version 3.12.1

locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

time zone: America/Chicago
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] compiler_4.5.0    fastmap_1.2.0     cli_3.6.5         tools_4.5.0      
 [5] htmltools_0.5.8.1 rstudioapi_0.17.1 yaml_2.3.10       rmarkdown_2.29   
 [9] knitr_1.50        jsonlite_2.0.0    xfun_0.52         digest_0.6.37    
[13] rlang_1.1.6       evaluate_1.0.5