Skip to content

Commit d7baca5

Browse files
author
Adam M. Wilson
committed
update presentation 08
1 parent 13bbb4f commit d7baca5

File tree

14 files changed

+28
-112
lines changed

14 files changed

+28
-112
lines changed

CS_08.Rmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ subtitle: RMarkdown to create dynamic research outputs. Publishing to github/wo
44
week: 8
55
type: Case Study
66
reading:
7-
- Chapters [11, 26-30 in R4DS](http://r4ds.had.co.nz)
87
- Browse website about [RMarkdown](https://rmarkdown.rstudio.com/index.html)
9-
- Browse details about creating [RMarkdown Websites](https://rmarkdown.rstudio.com/rmarkdown_websites.htm)
8+
- Browse [_R Markdown: the Definitive Guide_](https://bookdown.org/yihui/rmarkdown/)
109
tasks:
1110
- Create a new RMarkdown Document in Rstudio with `File -> New File -> R Markdown` and save it in the case_study folder for this session
1211
- Click "Knit" button or `File -> Knit` Document to generate an HTML document

CS_08.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ subtitle: RMarkdown to create dynamic research outputs. Publishing to github/wo
44
week: 8
55
type: Case Study
66
reading:
7-
- Chapters [11, 26-30 in R4DS](http://r4ds.had.co.nz)
87
- Browse website about [RMarkdown](https://rmarkdown.rstudio.com/index.html)
9-
- Browse details about creating [RMarkdown Websites](https://rmarkdown.rstudio.com/rmarkdown_websites.htm)
8+
- Browse [_R Markdown: the Definitive Guide_](https://bookdown.org/yihui/rmarkdown/)
109
tasks:
1110
- Create a new RMarkdown Document in Rstudio with `File -> New File -> R Markdown` and save it in the case_study folder for this session
1211
- Click "Knit" button or `File -> Knit` Document to generate an HTML document

Tasklist.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,8 @@ ___
250250

251251
<a class="btn btn-link" href="./CS_08.html" role="button" >Full Description</a><button data-toggle="collapse" class="btn btn-link" data-target="#i15">Preview Readings & Tasks </button><div id="i15" class="collapse">
252252
## Readings
253-
- Chapters [11, 26-30 in R4DS](http://r4ds.had.co.nz)
254253
- Browse website about [RMarkdown](https://rmarkdown.rstudio.com/index.html)
255-
- Browse details about creating [RMarkdown Websites](https://rmarkdown.rstudio.com/rmarkdown_websites.htm)
254+
- list(`Browse [_R Markdown` = "the Definitive Guide_](https://bookdown.org/yihui/rmarkdown/)")
256255

257256
## Tasks
258257
- Create a new RMarkdown Document in Rstudio with `File -> New File -> R Markdown` and save it in the case_study folder for this session

Tasklist_new.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,8 @@ ___
250250

251251
<a class="btn btn-link" href="./CS_08.html" role="button" >Full Description</a><button data-toggle="collapse" class="btn btn-link" data-target="#i15">Preview Readings & Tasks </button><div id="i15" class="collapse">
252252
## Readings
253-
- Chapters [11, 26-30 in R4DS](http://r4ds.had.co.nz)
254253
- Browse website about [RMarkdown](https://rmarkdown.rstudio.com/index.html)
255-
- Browse details about creating [RMarkdown Websites](https://rmarkdown.rstudio.com/rmarkdown_websites.htm)
254+
- list(`Browse [_R Markdown` = "the Definitive Guide_](https://bookdown.org/yihui/rmarkdown/)")
256255

257256
## Tasks
258257
- Create a new RMarkdown Document in Rstudio with `File -> New File -> R Markdown` and save it in the case_study folder for this session

docs/Tasklist.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,9 +695,8 @@ <h2><a href="./CS_08.html">CS_08 : One Script, Many Products</a></h2>
695695
<div id="i15" class="collapse">
696696
<h2 id="readings-14">Readings</h2>
697697
<ul>
698-
<li>Chapters <a href="http://r4ds.had.co.nz">11, 26-30 in R4DS</a></li>
699698
<li>Browse website about <a href="https://rmarkdown.rstudio.com/index.html">RMarkdown</a></li>
700-
<li>Browse details about creating <a href="https://rmarkdown.rstudio.com/rmarkdown_websites.htm">RMarkdown Websites</a></li>
699+
<li>list(<code>Browse [_R Markdown</code> = “the Definitive Guide_](<a href="https://bookdown.org/yihui/rmarkdown/" class="uri">https://bookdown.org/yihui/rmarkdown/</a>)”)</li>
701700
</ul>
702701
<h2 id="tasks-14">Tasks</h2>
703702
<ul>

docs/Tasklist_new.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,9 +695,8 @@ <h2><a href="./CS_08.html">CS_08 : One Script, Many Products</a></h2>
695695
<div id="i15" class="collapse">
696696
<h2 id="readings-14">Readings</h2>
697697
<ul>
698-
<li>Chapters <a href="http://r4ds.had.co.nz">11, 26-30 in R4DS</a></li>
699698
<li>Browse website about <a href="https://rmarkdown.rstudio.com/index.html">RMarkdown</a></li>
700-
<li>Browse details about creating <a href="https://rmarkdown.rstudio.com/rmarkdown_websites.htm">RMarkdown Websites</a></li>
699+
<li>list(<code>Browse [_R Markdown</code> = “the Definitive Guide_](<a href="https://bookdown.org/yihui/rmarkdown/" class="uri">https://bookdown.org/yihui/rmarkdown/</a>)”)</li>
701700
</ul>
702701
<h2 id="tasks-14">Tasks</h2>
703702
<ul>

docs/presentations/PS_08_repro.Rmd

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,6 @@ title: "Reproducible Research"
113113
Excel coding error sliced several countries out of the data set....
114114
[The Economist](http://www.economist.com/news/finance-and-economics/21576362-seminal-analysis-relationship-between-debt-and-growth-comes-under)
115115

116-
## Case study: Gay Marrage
117-
118-
#### In May 2015 _Science_ retracted a study of how canvassers can sway people's opinions about gay marriage published just 5 months ago.
119-
120-
* Original survey data not made available for independent reproduction of results
121-
* Survey incentives misrepresented
122-
* Sponsorship statement false.
123-
124-
<small>- Science Editor-in-Chief Marcia McNutt</small>
125-
126-
Two Berkeley grad students who attempted to replicate the study quickly discovered that the data must have been faked.
127-
128-
[Source](http://news.sciencemag.org/policy/2015/05/science-retracts-gay-marriage-paper-without-lead-author-s-consent)
129116

130117
## Case study: Seizure Medicine
131118

@@ -178,16 +165,16 @@ Of course `2+2` is trivial, but what if I said:
178165
<img src="img_12/model.png" alt="alt text" width="800">
179166

180167

181-
## Literate programming: for and against {.columns-2}
168+
## Literate programming: pros and cons {.columns-2}
182169

183-
**For**
170+
**Pros**
184171

185172
- Text & code in one place, in logical order
186173
- Tables and figures automatically updated
187174
- Automatic test when building document
188175

189176

190-
**Against**
177+
**Cons**
191178

192179
- Text and code in one place; can be hard to read
193180
- Can slow down the processing of documents (use caching!)

docs/presentations/PS_08_repro.html

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -634,18 +634,6 @@ <h2>Case study: Reinhart and Rogoff controversy</h2>
634634
<p><img src="img_12/reinhart_rogoff_econ_mag.png" alt="alt text" width="500"></p>
635635
<p>Excel coding error sliced several countries out of the data set…. <a href="http://www.economist.com/news/finance-and-economics/21576362-seminal-analysis-relationship-between-debt-and-growth-comes-under">The Economist</a></p>
636636
</section>
637-
<section id="case-study-gay-marrage" class="slide level2">
638-
<h2>Case study: Gay Marrage</h2>
639-
<h4 id="in-may-2015-science-retracted-a-study-of-how-canvassers-can-sway-peoples-opinions-about-gay-marriage-published-just-5-months-ago.">In May 2015 <em>Science</em> retracted a study of how canvassers can sway people’s opinions about gay marriage published just 5 months ago.</h4>
640-
<ul>
641-
<li>Original survey data not made available for independent reproduction of results</li>
642-
<li>Survey incentives misrepresented</li>
643-
<li>Sponsorship statement false.</li>
644-
</ul>
645-
<p><small>- Science Editor-in-Chief Marcia McNutt</small></p>
646-
<p>Two Berkeley grad students who attempted to replicate the study quickly discovered that the data must have been faked.</p>
647-
<p><a href="http://news.sciencemag.org/policy/2015/05/science-retracts-gay-marriage-paper-without-lead-author-s-consent">Source</a></p>
648-
</section>
649637
<section id="case-study-seizure-medicine" class="slide level2">
650638
<h2>Case study: Seizure Medicine</h2>
651639
<h4 id="seizure-study-retracted-after-authors-realize-data-got-terribly-mixed">2013 Seizure study retracted after authors realize data got “terribly mixed”</h4>
@@ -689,15 +677,15 @@ <h2>Literate statistical programming</h2>
689677
<p>Of course <code>2+2</code> is trivial, but what if I said:</p>
690678
<p><img src="img_12/model.png" alt="alt text" width="800"></p>
691679
</section>
692-
<section id="literate-programming-for-and-against" class="slide level2 columns-2">
693-
<h2>Literate programming: for and against</h2>
694-
<p><strong>For</strong></p>
680+
<section id="literate-programming-pros-and-cons" class="slide level2 columns-2">
681+
<h2>Literate programming: pros and cons</h2>
682+
<p><strong>Pros</strong></p>
695683
<ul>
696684
<li>Text &amp; code in one place, in logical order</li>
697685
<li>Tables and figures automatically updated</li>
698686
<li>Automatic test when building document</li>
699687
</ul>
700-
<p><strong>Against</strong></p>
688+
<p><strong>Cons</strong></p>
701689
<ul>
702690
<li>Text and code in one place; can be hard to read</li>
703691
<li>Can slow down the processing of documents (use caching!)</li>

docs/presentations/PS_08_repro.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,6 @@ title: "Reproducible Research"
113113
Excel coding error sliced several countries out of the data set....
114114
[The Economist](http://www.economist.com/news/finance-and-economics/21576362-seminal-analysis-relationship-between-debt-and-growth-comes-under)
115115

116-
## Case study: Gay Marrage
117-
118-
#### In May 2015 _Science_ retracted a study of how canvassers can sway people's opinions about gay marriage published just 5 months ago.
119-
120-
* Original survey data not made available for independent reproduction of results
121-
* Survey incentives misrepresented
122-
* Sponsorship statement false.
123-
124-
<small>- Science Editor-in-Chief Marcia McNutt</small>
125-
126-
Two Berkeley grad students who attempted to replicate the study quickly discovered that the data must have been faked.
127-
128-
[Source](http://news.sciencemag.org/policy/2015/05/science-retracts-gay-marriage-paper-without-lead-author-s-consent)
129116

130117
## Case study: Seizure Medicine
131118

@@ -183,16 +170,16 @@ Of course `2+2` is trivial, but what if I said:
183170
<img src="img_12/model.png" alt="alt text" width="800">
184171

185172

186-
## Literate programming: for and against {.columns-2}
173+
## Literate programming: pros and cons {.columns-2}
187174

188-
**For**
175+
**Pros**
189176

190177
- Text & code in one place, in logical order
191178
- Tables and figures automatically updated
192179
- Automatic test when building document
193180

194181

195-
**Against**
182+
**Cons**
196183

197184
- Text and code in one place; can be hard to read
198185
- Can slow down the processing of documents (use caching!)

docs/scripts/CS_08.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
#' week: 8
55
#' type: Case Study
66
#' reading:
7-
#' - Chapters [11, 26-30 in R4DS](http://r4ds.had.co.nz)
87
#' - Browse website about [RMarkdown](https://rmarkdown.rstudio.com/index.html)
9-
#' - Browse details about creating [RMarkdown Websites](https://rmarkdown.rstudio.com/rmarkdown_websites.htm)
8+
#' - Browse [_R Markdown: the Definitive Guide_](https://bookdown.org/yihui/rmarkdown/)
109
#' tasks:
1110
#' - Create a new RMarkdown Document in Rstudio with `File -> New File -> R Markdown` and save it in the case_study folder for this session
1211
#' - Click "Knit" button or `File -> Knit` Document to generate an HTML document

0 commit comments

Comments
 (0)