Syntax changes in accordance with Google.

This commit is contained in:
Felix Jung 2014-03-21 14:21:33 +01:00
parent 734a8b3e06
commit fc50b1584e

View File

@ -25,7 +25,7 @@ snippet ei
# functions # functions
snippet fun snippet fun
${1:name} = function (${2:variables}) { ${1:name} <- function (${2:variables}) {
${0} ${0}
} }
snippet ret snippet ret
@ -39,7 +39,7 @@ snippet c
snippet li snippet li
list(${0:items}) list(${0:items})
snippet mat snippet mat
matrix(${1:data}, nrow=${2:rows}, ncol=${0:cols}) matrix(${1:data}, nrow = ${2:rows}, ncol = ${0:cols})
# apply functions # apply functions
snippet apply snippet apply
@ -100,7 +100,7 @@ snippet pl
snippet ggp snippet ggp
ggplot(${1:data}, aes(${0:aesthetics})) ggplot(${1:data}, aes(${0:aesthetics}))
snippet img snippet img
${1:(jpeg,bmp,png,tiff)}(filename="${2:filename}", width=${3}, height=${4}, unit="${5}") ${1:(jpeg,bmp,png,tiff)}(filename = '${2:filename}', width = ${3}, height = ${4}, unit = '${5}')
${0:plot} ${0:plot}
dev.off() dev.off()