R is for
Authoring!!

OOH Session #133…
Code Appendices

Open Office Hours
(June 09, 2026)

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

Reminder – check it out!!

Fantastic resource!!






Recap of Session
#132:

Accordion folding

  1. Inspect repository

  2. (within project directory), type into terminal:

quarto add royfrancis/quarto-accordion

YAML:

---
title: Accordion
accordion:
  - accordion-1:
    - header: Click here to view contents
      body: This is the body content
      collapsed: true
      id: custom-item-1
---

{{< accordion accordion-1 >}}
1
Use this label (here “accordion-1”) to execute content within body of document (e.g., on line #11)

in–line:

{{< accordion 
  header="Click here to view contents" 
  body="This is the body content" 
  collapsed=true 
  id="custom-item-1" >}}
1
id’s are auto–generated but can also be manually specified if desired. Seemingly most useful for direct links
This is the body content

Help pages have a section on css styling – AI can help craft styling specifications


/* Blue accordion styling */
.quarto-accordion .accordion-item {
  background-color: white;          
  border-color: black;
  margin-bottom: 8px;
  border-radius: 6px;
  overflow: hidden;
}

.quarto-accordion .accordion-button {
  background-color: #0a58ca;
  color: white;
  font-weight: 500;
}

.quarto-accordion .accordion-button:not(.collapsed) {
  background-color: #ade8f4;           
  color: #000000;
  box-shadow: none;
}

.quarto-accordion .accordion-body {
  background-color: #f8f9fa;          
  color: #212529;
}




//

Today…

Code Appendices

Built–in option with RMarkdown, extension for Quarto

& Session Info (June 09, 2026) 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.9   otel_0.2.0        rstudioapi_0.18.0 yaml_2.3.12      
 [9] rmarkdown_2.31    knitr_1.51        jsonlite_2.0.0    xfun_0.57        
[13] digest_0.6.39     rlang_1.1.7       evaluate_1.0.5   

Quarto version 1.9.37