Skip to content

Commit

Permalink
Syntax changes in accordance with Google.
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Jung committed Mar 21, 2014
1 parent 734a8b3 commit fc50b15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions snippets/r.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ snippet ei

# functions
snippet fun
${1:name} = function (${2:variables}) {
${1:name} <- function (${2:variables}) {
${0}
}
snippet ret
Expand All @@ -39,7 +39,7 @@ snippet c
snippet li
list(${0:items})
snippet mat
matrix(${1:data}, nrow=${2:rows}, ncol=${0:cols})
matrix(${1:data}, nrow = ${2:rows}, ncol = ${0:cols})

# apply functions
snippet apply
Expand Down Expand Up @@ -100,7 +100,7 @@ snippet pl
snippet ggp
ggplot(${1:data}, aes(${0:aesthetics}))
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}
dev.off()

Expand Down

0 comments on commit fc50b15

Please sign in to comment.