Skip to content

Commit 30916b7

Browse files
committed
Test learnr sur shinyapps.io
1 parent 57ea413 commit 30916b7

File tree

4 files changed

+183
-2
lines changed

4 files changed

+183
-2
lines changed

inst/shiny/histogram/rsconnect/shinyapps.io/phgrosjean/histogram.dcf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ account: phgrosjean
55
server: shinyapps.io
66
hostUrl: https://api.shinyapps.io/v1
77
appId: 590204
8-
bundleId: 1721275
8+
bundleId: 1721590
99
url: https://phgrosjean.shinyapps.io/histogram/
10-
when: 1543252660.5674
10+
when: 1543261164.38148
1111
asMultiple: FALSE
1212
asStatic: FALSE
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: ""
3+
output: learnr::tutorial
4+
runtime: shiny_prerendered
5+
---
6+
7+
```{r setup, include=FALSE}
8+
library(learnr)
9+
knitr::opts_chunk$set(echo = FALSE)
10+
```
11+
12+
Write a function that adds any two numbers and then call it:
13+
14+
```{r add-function, exercise=TRUE, exercise.lines = 5}
15+
add <- function() {
16+
17+
}
18+
```
19+
20+
```{r quiz}
21+
quiz(
22+
question("Which package contains functions for installing other R packages?",
23+
answer("base"),
24+
answer("tools"),
25+
answer("utils", correct = TRUE),
26+
answer("codetools")
27+
)
28+
)
29+
```

0 commit comments

Comments
 (0)