File size: 791 Bytes
aee6cc8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
09dff73
 
 
 
 
 
e54ec21
09dff73
 
 
 
 
 
 
 
 
 
 
 
 
e54ec21
 
09dff73
e54ec21
09dff73
aee6cc8
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
library(shiny)
library(shinyAce)
modes <- getAceModes()
themes <- getAceThemes()



foo <- function() {
  pb <- progress_bar$new(
    format = " [:bar] :current/:total (:percent) eta: :eta",
    total = 5, clear = FALSE)
  for(i in 1:5) {
    pb$tick()
    Sys.sleep(1)
  }
}
init <- "
## Seccion 1 
Abrir Help menu = F1
# 
Usted puede incluir chunks con operaciones, abajo un ejemplo.
```{r}
2*3
```
```{r}
x <- rnorm(n=50)
head(x)
mean(x)
```
## Seccion 2
you can use datasets and some libraries
```{r}
library(magrittr)
library(datasets)
data(iris)
```
```{r}
knitr::kable(head(iris))
```
```{r}
iris %>%
  group_by(Species) %>%
  summarise(mean = mean(Sepal.Length), sd = sd(Sepal.Length))
```
## Sección 3
Now it's your turn, build a simple chunk.
```{r}
# Write here something
```
"