From 74ef5cbd446216995d94f1ddcd2b84619f1125ef Mon Sep 17 00:00:00 2001 From: r4d2 Date: Thu, 24 Apr 2014 21:14:50 -0400 Subject: [PATCH] Add R for and while snippets --- snippets/r.snippets | 10 ++++++++++ 1 file changed, 10 insertions(+) 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}) {