title: prevent r-markdown from unfolding code/function
body: <p>Here is my r-markdown code:</p>
  
  <pre><code>```{r setup, include=FALSE}
  knitr::opts_chunk$set(echo = TRUE)
  ```
  ```{r}
  
  test_funciton &lt;- function(){&lt;-&gt;}
  
  3+5
  
  ```
  </code></pre>
  
  <p>observe that <code>test_function</code> is folded. Now when I execute <code>3+5</code> line I end up with with the following view:</p>
  
  <pre><code>```{r setup, include=FALSE}
  knitr::opts_chunk$set(echo = TRUE)
  ```
  ```{r}
  
  test_funciton &lt;- function(){
    print('test')
  }
  
  3+5
  
  ```
  </code></pre>
  
  <p><code>test_function</code> is now unfolded. I wonder if I can prevent this unfolding behavior?</p>