prettySessionInfo: Pretty session info

Description Usage Value Author(s) See Also Examples

View source: R/prettySessionInfo.R

Description

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

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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))

rebook documentation built on Nov. 8, 2020, 4:56 p.m.