flexdashboard icon indicating copy to clipboard operation
flexdashboard copied to clipboard

feat: Use "cosmo" bootswatch only if neither `preset` nor `bootswatch` are set

Open gadenbuie opened this issue 2 years ago • 0 comments

This is a small change that will be transparent to most users that avoids errors if setting the theme: preset key. Currently, because bslib errors if preset and bootswatch are both set, and because bootswatch: cosmo is set by default by flexdashboard, users would need to write

output:
  html_document:
    theme:
      version: 5
      preset: shiny
      bootswatch: ~

to avoid the error from bslib. After this change, the bootswatch: ~ line isn't needed.

gadenbuie avatar Oct 04 '23 19:10 gadenbuie