prettySessionInfo: Pretty session info

Description Usage 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

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))

MarioniLab/simpleSingleCell documentation built on Aug. 27, 2020, 5:04 a.m.