Mixing up R markdown shortcut keys in RStudio, or how to unfold all chunks
[This article was first published on R – Statistical Odds & Ends, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
When using R markdown in RStudio, I like to insert a new chunk using the shortcut Cmd+Option+I
. Unfortunately I often press a key instead of “I” and end up folding all the chunks, getting something like this:
It often takes me a while (on Google) to figure out what I did and how to undo it. With this note to remind me, no longer!! The shortcut I accidentally used was Cmd+Option+O
, which folds up all chunks. To unfold all chunks, use Cmd+Shift+Option+O
.
The full list of RStudio keyboard shortcuts can be found here.
To leave a comment for the author, please follow the link and comment on their blog: R – Statistical Odds & Ends.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.