Skip to content

Instantly share code, notes, and snippets.

@jhollist
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhollist/02683870d4a2b567b5dc to your computer and use it in GitHub Desktop.
Save jhollist/02683870d4a2b567b5dc to your computer and use it in GitHub Desktop.
Example problem with RStudio editor and collapsing yaml front matter
---
name: bob
title: example collapse bug
date: today
---
```{r}
#test of the collapse
```
# The Problem
Copy this into the RStudio editor and then collapse the YAML in this gist to see the problen. The problem is this:
1.) collapsing the beginning of the YAML leaves the last line plus the trailing `---`.
2.) collapsing the trailing `---` collapses the code chunk to follows.
Interestingly, the Github editor also has the same problem with the yaml collapsing incorrectly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment