I have created an Rmarkdown file in a Kaggle Kernel and I am trying to do the following:
1) Set some code chunks as hidden but with a button next to them to allow the viewer to hide or display the code
2) Set some other codes chunks as not hidden with again a buttopn next to them to allow the viewer to hide or display the code
From what I could see in previous questions a suggested solution is
---
title: "test"
output:
html_document:
code_folding: hide
---
That unfortunately is not working for me. I have also set the following in the start of my script
```{r setup, include=FALSE, echo=FALSE}
knitr::opts_chunk$set(echo= TRUE)
and before each code I have the following:
```{r, message = FALSE, warning=FALSE }
# Load packages
library("ggplot2")
library("pastecs")
library("dplyr")
library("corrplot")
So my question would be, what should I do to get 1) and 2)?
Thanks in advance.