I want to use R package details for Create Details HTML Tag for Markdown and Package Documentation. My working example is below:
---
title: "Customizing Details"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{custom}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
```{r setup, echo = FALSE}
library(details)
```
### Open
```{r ch1, echo = TRUE}
seq(from = 1, to = 10, by = 2) %>%
details::details(
summary = "Output",
open = TRUE
)
```
```{r}
details(
plot(x=mtcars$mpg,y=mtcars$wt),
summary = "Output",
imgur = FALSE,
open = TRUE
)
```
It works fine. However, I want to show output first and then the hidden code without the additional code of details package. Any thoughts, please.
