Last active
August 29, 2015 14:06
-
-
Save jhollist/02683870d4a2b567b5dc to your computer and use it in GitHub Desktop.
Example problem with RStudio editor and collapsing yaml front matter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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