September 16, 2013

Rstudio starts to codefold markdown

Rstudiois a great tool for working with R and R scripts. And Markdown is a great way to write even complex, reproducible documents in plain text. So they make a great combination. BUT:

before when writing markdown in rstudio, you had to write ––” after your headings to get it to codefold markdown headings, thusly:

my first-level heading –––––

my second-level heading –––––

and AFAIK it didn’t understand the difference between different heading levels.

And now, all of a sudden, it just works! I am on version 0.98.243. So you don’t have to type ––- after each heading, and you can press Alt L to fold a second-level heading and it will close all the text below it down to the next second or first-level heading.

All we need now is a keystroke to open or close everything up to a given level, and to move folded chunks around. I would so like to not keep using Microsoft Word for outlining; it gives me heartburn every time I have to admit that it is still the best document outliner around.

R reproducibleResearch nerdvana

Previous post
Social Capital article published at last International Journal of Internet Science Volume 8, Issue 1 Social Capital and Pro-Social
Next post
Does maintaining supply of water and sanitation in IDP sites after the relief phase encourage people to stay in the sites? Does cutting them

This blog by Steve Powell is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License, syndicated on r-bloggers and powered by Blot.
Privacy Policy