Some simple RStudio addins
In this blog post I introduce three small RStudio addins I did.
I prefer subsetting with the double brackets than with the dollar in R, because this is more readable in RStudio thanks to the syntax highlighting. That’s why I did bracketify. This addin replaces all occurrences of
foo[["bar"]], either in a whole file or only in the current selection.
To use carefully: if you have some dollar symbols in your code which are not used for subsetting (e.g. in a regular expression), they can be transformed by bracketify.
Originally, I made pasteAsComment to paste the content of the clipboard as a comment:
I updated this package today. Now it also allows to paste the content of the clipboard as roxygen lines. This is particularly useful to write some code in the