An open API service indexing awesome lists of open source software.

https://github.com/ColinFay/rstudiosnippets

Random RStudio Snippets
https://github.com/ColinFay/rstudiosnippets

Last synced: 5 months ago
JSON representation

Random RStudio Snippets

Awesome Lists containing this project

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)
```