Combining addins and code-snippets: howto insert a proper snippet from an addin



Code snippets are great because they allow to navigate through the snippet by the TAB key. Addins are great because they are extremely versatile. Unfortunately, I did not figure out how combine them and insert a text from an addin into the current source code window that allows me to navigate through it as if it were a snippet.

I guess, what I am looking for is rstudioapi::insertSnippet(), which however does not exist.

Did anybody try to perform something similar?


You're right that this currently doesn't exist -- you might want to file a feature request at