Is there a way to reference a css file from a yaml file in my R Quarto Book? The css file defines the theme for my Quarto document, and I want all our Quarto docs to have the same appearance. When I directly call the css file, I can customize aspects like font and size as needed. However, I encounter an error when trying to organize the css file within a directory structure.
ERROR: TypeError: Path must be a string. Received {"value":"here::here("one_care_custom.scss")","tag":"!expr"}
The file my_custom_theme.css is currently located in the root directory of my R project. The following code highlights what works and what doesn't:
format:
html:
theme:
- cosmo
#- !expr here::here("my_custom_theme.scss") # This fails
- here::here("my_custom_theme.scss") # This fails
#- my_custom_theme.scss # this works
I've reviewed a post that I'm struggling to implement How to include a css file using R code in the yaml header?, and also looked for guidance at https://github.com/rstudio/rmarkdown/issues/2470. Can anyone provide any helpful tips?
Essentially, I aim to reference my_custom_theme.css from a specific directory visible to the team, but I seem to be stuck on this initial step.
Thank you, Phil,