---
title: "Basics with sessionInfo"
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{Basics with sessionInfo}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
```

```{r setup}
library(details)
```

One the most basic and popular uses for `details` is to paste the sessioninfo at the bottom of a GitHub issue.

> Pro tip: When using details in knitr/rmarkdown documents there is no need to set the knitr chunk options to results='asis', there are already predefined print methods for these environments.

```{r}

sessioninfo::session_info()|>
  details::details(
    summary = 'Current session info',
    open    = TRUE
  )

```