library(details)
You can customize the details output:
R.version.string %>%
details::details(
summary = 'R Version'
)
Manipulating the title style
R.version.string %>%
details::details(
summary = '<font color="red"> R Version </font>'
)
readLines(
'https://raw.githubusercontent.com/metrumresearchgroup/covrpage/master/_pkgdown.yml'
)%>%
details::details(
summary = 'yaml example',
lang = 'yml'
)
yaml example
title: covrpage
development:
mode: auto
template:
params:
bootswatch: flatly
navbar:
type: inverse
right:
- icon: fa-github fa-lg
href: https://github.com/yonicd/covrpage
structure:
left: [home, reference, articleindex, news]
right: [github, twitter]
components:
articles: ~
articleindex:
text: Articles
href: articles/index.html
twitter:
icon: fa-lg fa-twitter
href: http://twitter.com/yoniceedee
hexURL:
https://github.com/yonicd/covrpage/blob/master/inst/logo/covrpageLogoSCREEN.png?raw=true
reference:
- title: "Setup"
contents:
- has_concept("setup")
- title: "Invoking"
contents:
- has_concept("invoke")
- title: "Covrpage Trends"
contents:
- has_concept("log")
- title: "Covrpage Utilities"
contents:
- has_concept("utility")
articles:
- title: "Basics"
contents:
- get-started
- how-to-read-covrpage-report
- title: "Advanced"
contents:
- Continuous_Integration
- Test_Results
- snapshots
- title: "The Output"
contents:
- tests_and_coverage
details::details(
'<h1 style="color:blue;">This is a Blue Heading</h1><br>
<p style="border: 1px solid powderblue;">There is a border around the text</p>',
summary = 'Raw code example',
lang = 'none'
)
Raw code example
There is a border around the text