Code snippets are text macros which you can insert into your programs. They are used for repetitive tasks and can boost your productivity tremendously. Here I am not going to explain how to use it. There are already several good tutorials around:
In this post, I want to summarize some important details, which I learned laboriously after time-consuming trials:
.Rmarkdownfiles. – So if you are going to write just text (e.g., a blog entry) and you want use RStudio snippets to insert shortcodes than you have to write into
.Rmarkdownfiles, you have to use SHIFT-TAB (and not just TAB as for R snippets in the code chunks).
ggplot2snippets as a kind of a template you are going to use frequently.
This work by Peter Baumgartner is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Permissions beyond the scope of this license may be available at http://notes.peter-baumgartner.net/contact. Powered by the docdock theme for Hugo.
Privacy | Disclaimer