You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
419B

  1. snippet doc
  2. #' ${1:Title}
  3. #'
  4. #' ${2:Description}
  5. #'
  6. #' ${3:Description text}
  7. #'
  8. #' @param $4
  9. #' @return $5
  10. #' @export
  11. #' @examples
  12. #' $6
  13. endsnippet
  14. snippet fun
  15. function($1)
  16. {
  17. $2
  18. }
  19. endsnippet
  20. snippet if
  21. if ($1)
  22. {
  23. $2
  24. }
  25. endsnippet
  26. snippet ifelse
  27. ifelse($1, $2, $3)
  28. endsnippet
  29. snippet case
  30. case_when($1 ~ $2,
  31. $3 ~ $4,
  32. ${5:T} ~ $6)
  33. endsnippet
  34. snippet lib
  35. library(${1:tidyverse})
  36. endsnippet