prettySessionInfo: Pretty session info

View source: R/prettySessionInfo.R

prettySessionInfoR Documentation

Pretty session info

Description

Wraps the session information output chunk in a collapsible HTML element so that it doesn't dominate the compiled chapter.

Usage

prettySessionInfo()

Value

Prints a HTML block containing a collapsible section with session information.

Author(s)

Aaron Lun

See Also

setupHTML and chapterPreamble, to set up the code for the collapsible element.

Examples

tmp <- tempfile(fileext=".Rmd")
write(file=tmp, "```{r, echo=FALSE, results='asis'}
rebook::setupHTML()
```

```{r, results='asis'}
prettySessionInfo()
```")

rmarkdown::render(tmp)

if (interactive()) browseURL(sub(".Rmd$", ".html", tmp))


LTLA/rebook documentation built on June 5, 2023, 6:24 p.m.