Skip to content

Commit f983821

Browse files
committed
package updates and a fix for broken dcl sessions in chapter 2
1 parent 3f66a16 commit f983821

File tree

785 files changed

+7766
-5811
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

785 files changed

+7766
-5811
lines changed

.DS_Store

2 KB
Binary file not shown.

DCL/ex2_1.html

Lines changed: 34 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,62 @@
11
<!DOCTYPE html>
2-
<html>
3-
<head>
2+
<html>
3+
<head>
44
<meta charset='utf-8'/>
5-
<script async='async' src='https://cdn.datacamp.com/dcl-react-dev.js.gz'></script>
5+
<script src='https://cdn.datacamp.com/dcl-react.js.gz'></script>
66
<style>
77
.DCexercise .datacamp-exercise {
88
border: 2px solid #3D678D;
99
border-radius: 10px 10px 10px 10px !important;
1010
}
11-
12-
*[class*="lm_"], .ace_gutter, textarea[class*="ace_"], .ace_scroller {
11+
*[class*="lm_"], .ace_gutter, textarea[class*="ace_"], .ace_scroller {
1312
background-color: #F0EFF0 !important;
1413
}
15-
16-
div[class*="Editor-module__editor"], div[class*="dcl__Footer"] {
14+
div[class*="Editor-module__editor"], div[class*="dcl__Footer"] {
1715
background-color: #3D678D !important;
1816
}
19-
20-
*[class*="lm_"] {
17+
*[class*="lm_"] {
2118
border-radius: 10px 10px 0px 0px !important;
2219
}
23-
24-
div[class*="dcl__Footer"] {
20+
div[class*="dcl__Footer"] {
2521
border-radius: 0px 0px 10px 10px !important;
2622
}
27-
28-
.lm_content {
23+
.lm_content {
2924
border-radius: 0px !important;
3025
}
31-
32-
.lm_splitter {
26+
.lm_splitter {
3327
background-color: #3D678D !important;
3428
width: 3px !important;
3529
}
36-
37-
.lm_drag_handle {
30+
.lm_drag_handle {
3831
background: transparent !important;
3932
}
40-
41-
div[class*="dcl__index-module"] {
33+
div[class*="dcl__index-module"] {
4234
outline-color: transparent !important;
4335
border-radius: 10px !important;
4436
}
45-
46-
button[class*="secondary-light"] {
37+
button[class*="secondary-light"] {
4738
background-color: #FF0000;
4839
}
4940
</style>
50-
</head>
51-
<body>
52-
<div data-datacamp-exercise data-lang='r' data-height =320><code data-type="sample-code">
53-
set.seed(123)
54-
# draw the winning numbers for this week
55-
56-
57-
</code>
58-
<code data-type="solution">
59-
set.seed(123)
60-
# draw the winning numbers for this week
61-
sample(1:49, size = 6)
62-
63-
</code>
64-
<code data-type="sct">
65-
test_function("sample", args = c("x","size"))
66-
</code></div>
67-
</body>
68-
</html>
41+
</head>
42+
<body>
43+
<div data-datacamp-exercise data-lang='r' data-height="320">
44+
<code data-type="pre-exercise-code">
45+
# No pre-exercise code
46+
</code>
47+
<code data-type="sample-code">
48+
set.seed(123)
49+
# draw the winning numbers for this week
50+
</code>
51+
<code data-type="solution">
52+
set.seed(123)
53+
# draw the winning numbers for this week
54+
sample(1:49, size = 6)
55+
</code>
56+
<code data-type="sct">
57+
test_output_contains("[1] 3 40 35 15 44 17", incorrect_msg = "Did you set the seed and use sample(1:49, size = 6)?")
58+
success_msg("Great! You drew the winning numbers.")
59+
</code>
60+
</div>
61+
</body>
62+
</html>

DCL/ex2_2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset='utf-8'/>
5-
<script async='async' src='https://cdn.datacamp.com/dcl-react-dev.js.gz'></script>
5+
<script src='https://cdn.datacamp.com/dcl-react.js.gz'></script>
66
<style>
77
.DCexercise .datacamp-exercise {
88
border: 2px solid #3D678D;

0 commit comments

Comments
 (0)