File size: 1,017 Bytes
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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
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 load datasets and 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))
```
## Seccion 3
you also can make graphics
```{r}
plot(iris$Sepal.Length, iris$Sepal.Width)
```
```{r}
library(ggplot2)
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +
geom_point()
```
## Sección 4
Ahora es su turno, construya un chunk sencillo.
```{r}
# Escriba aqui algo
```
"
|