knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
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.

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


yonicd/details documentation built on March 31, 2022, 4:27 a.m.