https://github.com/ColinFay/rstudiosnippets
Random RStudio Snippets
https://github.com/ColinFay/rstudiosnippets
Last synced: 5 months ago
JSON representation
Random RStudio Snippets
- Host: GitHub
- URL: https://github.com/ColinFay/rstudiosnippets
- Owner: ColinFay
- License: mit
- Archived: true
- Created: 2019-11-25T08:34:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-25T08:38:46.000Z (over 5 years ago)
- Last Synced: 2024-08-09T02:19:49.037Z (8 months ago)
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - ColinFay/rstudiosnippets - Random RStudio Snippets (Others)
README
# rstudiosnippets
Just somewhere to share some RStudio Snippets I use.
## R6 Class
```
snippet R6
${0:name} <- R6::R6Class(
"${0:name}",
public = list(
initialize = function() {
},
finalize = function() {
}
),
private = list(
)
)
```## Todo
```
snippet todo
# TODO ${0:what}
```## Functionnal Shiny App
```
snippet shinyapp
library(shiny)
ui <- function(request){
tagList(
)
}
server <- function(
input,
output,
session
){
}
shinyApp(ui, server)
```