Skip to content

Commit

Permalink
Render leanpub
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 26, 2022
1 parent 42b427f commit add62e8
Show file tree
Hide file tree
Showing 339 changed files with 102,071 additions and 491 deletions.
69 changes: 69 additions & 0 deletions coursera_quizzes/quiz_ch1.md.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

- typeName: multipleChoice
prompt: First question to ask goes here. (Note- you need a question mark at end like this. Just one is required if using a question mark in your question field)?

shuffleOptions: true
options:
- answer: One correct answer here marked with a "C"
isCorrect: true
- answer: Mandatory incorrect answers have an "m"
isCorrect: false
- answer: A second mandatory incorrect answer
isCorrect: false
- answer: An optional incorrect answer here marked with an "o"
isCorrect: false
- answer: A second optional incorrect answer here
isCorrect: false

- typeName: multipleChoice
prompt: Question example with just a question mark?

shuffleOptions: true
options:
- answer: One correct answer here marked with a "C"
isCorrect: true
- answer: Mandatory incorrect answers have an "m"
isCorrect: false
- answer: A second mandatory incorrect answer
isCorrect: false
- answer: An optional incorrect answer here marked with an "o"
isCorrect: false
- answer: A second optional incorrect answer here
isCorrect: false

- typeName: multipleChoice
prompt: Second question to ask goes here?

shuffleOptions: true
options:
- answer: One correct answer here marked with a "C"
isCorrect: true
- answer: Mandatory incorrect answers have an "m"
isCorrect: false
- answer: A second mandatory incorrect answer
isCorrect: false
- answer: An optional incorrect answer here marked with an "o"
isCorrect: false
- answer: A second optional incorrect answer here
isCorrect: false

- typeName: multipleChoice
prompt: A more complicated example. Note the question mark at the end of the options! Which of the following are correct
1. An option described
2. A second option
3. A third option
4. A fourth option
5. A fifth option ?

shuffleOptions: true
options:
- answer: All of the examples listed except 5
isCorrect: true
- answer: 1, 3, and 5
isCorrect: false
- answer: 1, 2, and 3
isCorrect: false
- answer: All of the examples except 1 and 5
isCorrect: false
- answer: All of the examples listed
isCorrect: false
36 changes: 15 additions & 21 deletions docs/02-chapter_of_course.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ And make plots too:
hist_plot <- hist(iris$Sepal.Length)
```

![](resources/images/02-chapter_of_course_files/figure-docx/unnamed-chunk-4-1.png)<!-- -->
<img src="resources/images/02-chapter_of_course_files/figure-html/unnamed-chunk-4-1.png" width="672" />

You can also save these plots to file:

Expand Down Expand Up @@ -102,7 +102,7 @@ dev.off()

How to include a Google slide. It's simplest to use the `leanbuild` package:

![](resources/images/02-chapter_of_course_files/figure-docx//1YmwKdIy9BeQ3EShgZhvtb3MgR8P6iDX4DfFD65W_gdQ_gcc4fbee202_0_141.png)
<img src="resources/images/02-chapter_of_course_files/figure-html//1YmwKdIy9BeQ3EShgZhvtb3MgR8P6iDX4DfFD65W_gdQ_gcc4fbee202_0_141.png" title="Major point!! example image" alt="Major point!! example image" style="display: block; margin: auto;" />

But if you have the slide or some other image locally downloaded you can also use html like this:

Expand All @@ -118,11 +118,7 @@ You can use `knitr::include_url()` like this:
knitr::include_url("https://www.youtube.com/embed/VOCYL-FNbr0")
```

```
## PhantomJS not found. You can install it with webshot::install_phantomjs(). If it is installed, please make sure the phantomjs executable can be found via the PATH variable.
```

<iframe src="https://www.youtube.com/embed/VOCYL-FNbr0" width="100%" height="400px"></iframe>
<iframe src="https://www.youtube.com/embed/VOCYL-FNbr0" width="672" height="400px"></iframe>

OR this works:

Expand All @@ -132,7 +128,7 @@ OR this works:

This works:

<iframe src="https://www.messiah.edu/download/downloads/id/921/Microaggressions_in_the_Classroom.pdf" width="100%" height="800px"></iframe>
<iframe src="https://www.messiah.edu/download/downloads/id/921/Microaggressions_in_the_Classroom.pdf" width="672" height="800px"></iframe>

Or this:

Expand All @@ -153,7 +149,7 @@ This works:
knitr::include_url("https://yihui.org")
```

<iframe src="https://yihui.org" width="100%" height="400px"></iframe>
<iframe src="https://yihui.org" width="672" height="400px"></iframe>

OR this:

Expand Down Expand Up @@ -207,13 +203,13 @@ devtools::session_info()
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz Etc/UTC
## date 2022-01-24
## date 2022-01-26
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date lib source
## assertthat 0.2.1 2019-03-21 [1] RSPM (R 4.0.3)
## backports 1.1.10 2020-09-15 [1] RSPM (R 4.0.2)
## bookdown 0.24 2022-01-19 [1] Github (rstudio/bookdown@88bc4ea)
## bookdown 0.24 2022-01-26 [1] Github (rstudio/bookdown@88bc4ea)
## callr 3.4.4 2020-09-07 [1] RSPM (R 4.0.2)
## cli 2.0.2 2020-02-28 [1] RSPM (R 4.0.0)
## crayon 1.3.4 2017-09-16 [1] RSPM (R 4.0.0)
Expand All @@ -225,13 +221,13 @@ devtools::session_info()
## evaluate 0.14 2019-05-28 [1] RSPM (R 4.0.3)
## fansi 0.4.1 2020-01-08 [1] RSPM (R 4.0.0)
## fs 1.5.0 2020-07-31 [1] RSPM (R 4.0.3)
## glue 1.6.0 2021-12-17 [1] CRAN (R 4.0.2)
## glue 1.6.1 2022-01-22 [1] CRAN (R 4.0.2)
## highr 0.8 2019-03-20 [1] RSPM (R 4.0.3)
## hms 0.5.3 2020-01-08 [1] RSPM (R 4.0.0)
## htmltools 0.5.0 2020-06-16 [1] RSPM (R 4.0.1)
## httr 1.4.2 2020-07-20 [1] RSPM (R 4.0.3)
## knitr 1.33 2022-01-19 [1] Github (yihui/knitr@a1052d1)
## leanbuild 0.1.2 2022-01-19 [1] Github (jhudsl/leanbuild@1d387e1)
## knitr 1.33 2022-01-26 [1] Github (yihui/knitr@a1052d1)
## leanbuild 0.1.2 2022-01-26 [1] Github (jhudsl/leanbuild@1d387e1)
## lifecycle 1.0.0 2021-02-15 [1] CRAN (R 4.0.2)
## magrittr * 1.5 2014-11-22 [1] RSPM (R 4.0.0)
## memoise 1.1.0 2017-04-21 [1] RSPM (R 4.0.0)
Expand All @@ -246,20 +242,18 @@ devtools::session_info()
## R6 2.4.1 2019-11-12 [1] RSPM (R 4.0.0)
## readr 1.4.0 2020-10-05 [1] RSPM (R 4.0.2)
## remotes 2.2.0 2020-07-21 [1] RSPM (R 4.0.3)
## rlang 0.4.10 2022-01-19 [1] Github (r-lib/rlang@f0c9be5)
## rmarkdown 2.10 2022-01-19 [1] Github (rstudio/rmarkdown@02d3c25)
## rlang 0.4.10 2022-01-26 [1] Github (r-lib/rlang@f0c9be5)
## rmarkdown 2.10 2022-01-26 [1] Github (rstudio/rmarkdown@02d3c25)
## rprojroot 1.3-2 2018-01-03 [1] RSPM (R 4.0.0)
## sessioninfo 1.1.1 2018-11-05 [1] RSPM (R 4.0.3)
## stringi 1.5.3 2020-09-09 [1] RSPM (R 4.0.3)
## stringr 1.4.0 2019-02-10 [1] RSPM (R 4.0.3)
## testthat 3.0.1 2022-01-19 [1] Github (R-lib/testthat@e99155a)
## testthat 3.0.1 2022-01-26 [1] Github (R-lib/testthat@e99155a)
## tibble 3.0.3 2020-07-10 [1] RSPM (R 4.0.2)
## usethis 2.1.5.9000 2022-01-19 [1] Github (r-lib/usethis@3c4ab66)
## usethis 2.1.5.9000 2022-01-26 [1] Github (r-lib/usethis@57b109a)
## vctrs 0.3.4 2020-08-29 [1] RSPM (R 4.0.2)
## webshot 0.5.2 2019-11-22 [1] RSPM (R 4.0.3)
## withr 2.3.0 2020-09-22 [1] RSPM (R 4.0.2)
## xfun 0.26 2022-01-19 [1] Github (yihui/xfun@74c2a66)
## yaml 2.2.1 2020-02-01 [1] RSPM (R 4.0.3)
## xfun 0.26 2022-01-26 [1] Github (yihui/xfun@74c2a66)
##
## [1] /usr/local/lib/R/site-library
## [2] /usr/local/lib/R/library
Expand Down
85 changes: 29 additions & 56 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,38 +83,39 @@
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ background-color: #f8f8f8; }
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ef2929; } /* Alert */
code span.an { color: #8f5902; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #c4a000; } /* Attribute */
code span.bn { color: #0000cf; } /* BaseN */
code span.cf { color: #204a87; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4e9a06; } /* Char */
code span.cn { color: #000000; } /* Constant */
code span.co { color: #8f5902; font-style: italic; } /* Comment */
code span.cv { color: #8f5902; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #8f5902; font-weight: bold; font-style: italic; } /* Documentation */
code span.dt { color: #204a87; } /* DataType */
code span.dv { color: #0000cf; } /* DecVal */
code span.er { color: #a40000; font-weight: bold; } /* Error */
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #0000cf; } /* Float */
code span.fu { color: #000000; } /* Function */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { } /* Import */
code span.in { color: #8f5902; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #204a87; font-weight: bold; } /* Keyword */
code span.op { color: #ce5c00; font-weight: bold; } /* Operator */
code span.ot { color: #8f5902; } /* Other */
code span.pp { color: #8f5902; font-style: italic; } /* Preprocessor */
code span.sc { color: #000000; } /* SpecialChar */
code span.ss { color: #4e9a06; } /* SpecialString */
code span.st { color: #4e9a06; } /* String */
code span.va { color: #000000; } /* Variable */
code span.vs { color: #4e9a06; } /* VerbatimString */
code span.wa { color: #8f5902; font-weight: bold; font-style: italic; } /* Warning */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>

<style type="text/css">
Expand All @@ -140,7 +141,6 @@
}
</style>

<link rel="stylesheet" href="assets/style.css" type="text/css" />
</head>

<body>
Expand All @@ -153,9 +153,6 @@
<nav role="navigation">

<ul class="summary">
<a href="http://jhudatascience.org/"><img src="https://jhudatascience.org/images/dasl.png" style=" width: 80%; padding-left: 40px; padding-top: 8px; vertical-align: top "</a>

<li class="divider"></li>
<li class="chapter" data-level="" data-path="index.html"><a href="index.html"><i class="fa fa-check"></i>About this Course</a></li>
<li class="chapter" data-level="1" data-path="introduction.html"><a href="introduction.html"><i class="fa fa-check"></i><b>1</b> Introduction</a>
<ul>
Expand Down Expand Up @@ -185,10 +182,6 @@
</ul></li>
<li class="chapter" data-level="" data-path="about-the-authors.html"><a href="about-the-authors.html"><i class="fa fa-check"></i>About the Authors</a></li>
<li class="chapter" data-level="" data-path="references.html"><a href="references.html"><i class="fa fa-check"></i>References</a></li>
<li class="divider"></li>
<p style="text-align:center;"> <a href="https://github.com/jhudsl/OTTR_Template" target="blank" > This content was published with</a> <a href="https://bookdown.org/" target="blank"> bookdown by:</a> </p>
<p style="text-align:center;"> <a href="http://jhudatascience.org/"> The Johns Hopkins Data Science Lab </a></p>
<p style="text-align:center; font-size: 12px;"> <a href="https://github.com/rstudio4edu/rstudio4edu-book/"> Style adapted from: rstudio4edu-book </a> <a href ="https://creativecommons.org/licenses/by/2.0/"> (CC-BY 2.0) </a></p>
</ul>

</nav>
Expand All @@ -206,32 +199,12 @@ <h1>
<div class="page-inner">

<section class="normal" id="section-">
<head>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0">
<!--script src="https://kit.fontawesome.com/6a26f47516.js"></script-->
<!--<script src="assets/hideOutput.js"></script>-->
<link href="assets/style.css" rel="stylesheet">
</head>



<div class="hero-image-container">
<img class= "hero-image" src= "https://github.com/jhudsl/OTTR_Template/raw/main/assets/dasl_thin_main_image.png">
</div>
<div id="page-not-found" class="section level1">
<h1>Page not found</h1>
<p>The page you requested cannot be found (perhaps it was moved or renamed).</p>
<p>You may want to try searching to find the page's new location, or use
the table of contents to find the page you are looking for.</p>
</div>
<hr>
<center>
<div class="footer">
All illustrations <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY. </a>
<br>
All other materials <a href= "https://creativecommons.org/licenses/by/4.0/"> CC-BY </a> unless noted otherwise.
</div>
</center>
</section>

</div>
Expand Down Expand Up @@ -286,7 +259,7 @@ <h1>Page not found</h1>
"options": null
},
"toc": {
"collapse": "section"
"collapse": "subsection"
}
});
});
Expand Down
26 changes: 16 additions & 10 deletions docs/About.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ These credits are based on our [course contributors table guidelines](https://gi
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz Etc/UTC
## date 2022-01-24
## date 2022-01-26
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date lib source
## assertthat 0.2.1 2019-03-21 [1] RSPM (R 4.0.3)
## backports 1.1.10 2020-09-15 [1] RSPM (R 4.0.2)
## bookdown 0.24 2022-01-19 [1] Github (rstudio/bookdown@88bc4ea)
## bookdown 0.24 2022-01-26 [1] Github (rstudio/bookdown@88bc4ea)
## callr 3.4.4 2020-09-07 [1] RSPM (R 4.0.2)
## cli 2.0.2 2020-02-28 [1] RSPM (R 4.0.0)
## crayon 1.3.4 2017-09-16 [1] RSPM (R 4.0.0)
Expand All @@ -68,31 +68,37 @@ These credits are based on our [course contributors table guidelines](https://gi
## evaluate 0.14 2019-05-28 [1] RSPM (R 4.0.3)
## fansi 0.4.1 2020-01-08 [1] RSPM (R 4.0.0)
## fs 1.5.0 2020-07-31 [1] RSPM (R 4.0.3)
## glue 1.6.0 2021-12-17 [1] CRAN (R 4.0.2)
## glue 1.6.1 2022-01-22 [1] CRAN (R 4.0.2)
## hms 0.5.3 2020-01-08 [1] RSPM (R 4.0.0)
## htmltools 0.5.0 2020-06-16 [1] RSPM (R 4.0.1)
## knitr 1.33 2022-01-19 [1] Github (yihui/knitr@a1052d1)
## knitr 1.33 2022-01-26 [1] Github (yihui/knitr@a1052d1)
## leanbuild 0.1.2 2022-01-26 [1] Github (jhudsl/leanbuild@1d387e1)
## lifecycle 1.0.0 2021-02-15 [1] CRAN (R 4.0.2)
## magrittr 1.5 2014-11-22 [1] RSPM (R 4.0.0)
## memoise 1.1.0 2017-04-21 [1] RSPM (R 4.0.0)
## pillar 1.4.6 2020-07-10 [1] RSPM (R 4.0.2)
## pkgbuild 1.1.0 2020-07-13 [1] RSPM (R 4.0.2)
## pkgconfig 2.0.3 2019-09-22 [1] RSPM (R 4.0.3)
## pkgload 1.1.0 2020-05-29 [1] RSPM (R 4.0.3)
## prettyunits 1.1.1 2020-01-24 [1] RSPM (R 4.0.3)
## processx 3.4.4 2020-09-03 [1] RSPM (R 4.0.2)
## ps 1.3.4 2020-08-11 [1] RSPM (R 4.0.2)
## purrr 0.3.4 2020-04-17 [1] RSPM (R 4.0.3)
## R6 2.4.1 2019-11-12 [1] RSPM (R 4.0.0)
## readr 1.4.0 2020-10-05 [1] RSPM (R 4.0.2)
## remotes 2.2.0 2020-07-21 [1] RSPM (R 4.0.3)
## rlang 0.4.10 2022-01-19 [1] Github (r-lib/rlang@f0c9be5)
## rmarkdown 2.10 2022-01-19 [1] Github (rstudio/rmarkdown@02d3c25)
## rlang 0.4.10 2022-01-26 [1] Github (r-lib/rlang@f0c9be5)
## rmarkdown 2.10 2022-01-26 [1] Github (rstudio/rmarkdown@02d3c25)
## rprojroot 1.3-2 2018-01-03 [1] RSPM (R 4.0.0)
## sessioninfo 1.1.1 2018-11-05 [1] RSPM (R 4.0.3)
## stringi 1.5.3 2020-09-09 [1] RSPM (R 4.0.3)
## stringr 1.4.0 2019-02-10 [1] RSPM (R 4.0.3)
## testthat 3.0.1 2022-01-19 [1] Github (R-lib/testthat@e99155a)
## usethis 2.1.5.9000 2022-01-19 [1] Github (r-lib/usethis@3c4ab66)
## testthat 3.0.1 2022-01-26 [1] Github (R-lib/testthat@e99155a)
## tibble 3.0.3 2020-07-10 [1] RSPM (R 4.0.2)
## usethis 2.1.5.9000 2022-01-26 [1] Github (r-lib/usethis@57b109a)
## vctrs 0.3.4 2020-08-29 [1] RSPM (R 4.0.2)
## withr 2.3.0 2020-09-22 [1] RSPM (R 4.0.2)
## xfun 0.26 2022-01-19 [1] Github (yihui/xfun@74c2a66)
## yaml 2.2.1 2020-02-01 [1] RSPM (R 4.0.3)
## xfun 0.26 2022-01-26 [1] Github (yihui/xfun@74c2a66)
##
## [1] /usr/local/lib/R/site-library
## [2] /usr/local/lib/R/library
Expand Down
Loading

0 comments on commit add62e8

Please sign in to comment.