Customizing Details

library(details)

You can customize the details output:

  1. Customizing the title
  2. Controlling if it is opened or closed
  3. Customizing the Tooltip
  4. Setting the highlight language

Default

  R.version %>%
  details::details()


Title

R.version.string %>%
  details::details(
    summary = 'R Version'
  )

R Version


Manipulating the title style

R.version.string %>%
  details::details(
    summary = '<font color="red"> R Version </font>'
  )

R Version


Open

R.version.string %>%
  details::details(
    summary = 'Open by default',
    open = TRUE
  )

Open by default


Tooltip

Use the current date as the tooltip


Language


readLines(
  'https://raw.githubusercontent.com/metrumresearchgroup/covrpage/master/_pkgdown.yml'
  )%>%
  details::details(
    summary = 'yaml example',
    lang = 'yml'
    )

yaml example