neoconfig/UltiSnips/rmarkdown.snippets
2024-07-30 22:59:49 +02:00

22 lines
337 B
Plaintext

snippet template "This creates a basic template for markdown files"
---
title: "$1"
author: "Hollós Roland"
output: "$3"
---
\`\`\`{r qplot, fig.width=4, message=FALSE}
library(ggplot2)
summary(cars)
qplot(speed, dist, data=cars) +
geom_smooth()
\`\`\`
endsnippet
snippet ,r "creates R codeblock"
\`\`\`{r}
$1
\`\`\`
endsnippet