library(details)
You can customize the details output:
%>%
R.version ::details() details
_ -apple-darwin17.0
platform x86_64
arch x86_64 .0
os darwin17.0
system x86_64, darwin17
status 4
major 1.0
minor 2021
year 05
month 18
day 80317
svn rev
language R 4.1.0 (2021-05-18)
version.string R version nickname Camp Pontanezen
%>%
R.version.string ::details(
detailssummary = 'R Version'
)
4.1.0 (2021-05-18) R version
Manipulating the title style
%>%
R.version.string ::details(
detailssummary = '<font color="red"> R Version </font>'
)
4.1.0 (2021-05-18) R version
%>%
R.version.string ::details(
detailssummary = 'Open by default',
open = TRUE
)
4.1.0 (2021-05-18) R version
%>%
R.version.string ::details(
detailssummary = 'Use the current date as the tooltip',
tooltip = Sys.Date()
)
4.1.0 (2021-05-18) R version
readLines(
'https://raw.githubusercontent.com/metrumresearchgroup/covrpage/master/_pkgdown.yml'
%>%
)::details(
detailssummary = 'yaml example',
lang = 'yml'
)
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'
)
There is a border around the text