This installs a helper function into your RProfile that will check the OS appearance and apply your chosen light or dark theme appropriately. Preferred themes are stored in the global .Renviron file.
1 2 | use_darkly(light_theme = "Textmate (default)",
dark_theme = "Solarized Dark")
|
light_theme |
Character. Name of your preferred light theme. |
dark_theme |
Character. Name of your preferred dark theme. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.