Skip to content

Commit fc50b15

Browse files
author
Felix Jung
committed
Syntax changes in accordance with Google.
1 parent 734a8b3 commit fc50b15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: snippets/r.snippets

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ snippet ei
2525

2626
# functions
2727
snippet fun
28-
${1:name} = function (${2:variables}) {
28+
${1:name} <- function (${2:variables}) {
2929
${0}
3030
}
3131
snippet ret
@@ -39,7 +39,7 @@ snippet c
3939
snippet li
4040
list(${0:items})
4141
snippet mat
42-
matrix(${1:data}, nrow=${2:rows}, ncol=${0:cols})
42+
matrix(${1:data}, nrow = ${2:rows}, ncol = ${0:cols})
4343

4444
# apply functions
4545
snippet apply
@@ -100,7 +100,7 @@ snippet pl
100100
snippet ggp
101101
ggplot(${1:data}, aes(${0:aesthetics}))
102102
snippet img
103-
${1:(jpeg,bmp,png,tiff)}(filename="${2:filename}", width=${3}, height=${4}, unit="${5}")
103+
${1:(jpeg,bmp,png,tiff)}(filename = '${2:filename}', width = ${3}, height = ${4}, unit = '${5}')
104104
${0:plot}
105105
dev.off()
106106

0 commit comments

Comments
 (0)