diff --git a/snippets/r.snippets b/snippets/r.snippets index c7ca5ac..d9b210f 100644 --- a/snippets/r.snippets +++ b/snippets/r.snippets @@ -23,6 +23,16 @@ snippet ei ${0} } +# loops +snippet wh +while(${1}) { + ${2} +} +snippet for +for (${1:item} in ${2:list}) { + ${3} +} + # functions snippet fun ${1:name} = function (${2:variables}) {