Skip to content

Commit

Permalink
Reviewing chapters for last minute changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arranhamlet committed Oct 1, 2024
1 parent 29fb695 commit ddcd5e9
Show file tree
Hide file tree
Showing 91 changed files with 4,538 additions and 10,613 deletions.
4 changes: 2 additions & 2 deletions html_outputs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ <h1 class="title">The Epidemiologist R Handbook</h1>
<div>
<div class="quarto-title-meta-heading">Last updated</div>
<div class="quarto-title-meta-contents">
<p class="date">Sep 30, 2024</p>
<p class="date">Oct 1, 2024</p>
</div>
</div>

Expand Down Expand Up @@ -1463,7 +1463,7 @@ <h3 class="unnumbered anchored" data-anchor-id="contribution">Contribution</h3>
</div>
</div>
</footer>
<script>var lightboxQuarto = GLightbox({"loop":false,"openEffect":"zoom","selector":".lightbox","closeEffect":"zoom","descPosition":"bottom"});
<script>var lightboxQuarto = GLightbox({"openEffect":"zoom","descPosition":"bottom","selector":".lightbox","loop":false,"closeEffect":"zoom"});
(function() {
let previousOnload = window.onload;
window.onload = () => {
Expand Down
757 changes: 379 additions & 378 deletions html_outputs/new_pages/age_pyramid.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 63 additions & 57 deletions html_outputs/new_pages/collaboration.html

Large diffs are not rendered by default.

177 changes: 86 additions & 91 deletions html_outputs/new_pages/combination_analysis.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 19 additions & 19 deletions html_outputs/new_pages/contact_tracing.html

Large diffs are not rendered by default.

164 changes: 91 additions & 73 deletions html_outputs/new_pages/data_table.html

Large diffs are not rendered by default.

529 changes: 251 additions & 278 deletions html_outputs/new_pages/diagrams.html

Large diffs are not rendered by default.

88 changes: 47 additions & 41 deletions html_outputs/new_pages/directories.html

Large diffs are not rendered by default.

22 changes: 14 additions & 8 deletions html_outputs/new_pages/epicurves.html
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,12 @@
<a href="../new_pages/shiny_basics.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">43</span>&nbsp; <span class="chapter-title">Dashboards with Shiny</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/quarto.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">44</span>&nbsp; <span class="chapter-title">Quarto</span></span></a>
</div>
</li>
</ul>
</li>
Expand All @@ -695,43 +701,43 @@
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/writing_functions.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">44</span>&nbsp; <span class="chapter-title">Writing functions</span></span></a>
<span class="menu-text"><span class="chapter-number">45</span>&nbsp; <span class="chapter-title">Writing functions</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/directories.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">45</span>&nbsp; <span class="chapter-title">Directory interactions</span></span></a>
<span class="menu-text"><span class="chapter-number">46</span>&nbsp; <span class="chapter-title">Directory interactions</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/collaboration.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">46</span>&nbsp; <span class="chapter-title">Version control and collaboration with Git and Github</span></span></a>
<span class="menu-text"><span class="chapter-number">47</span>&nbsp; <span class="chapter-title">Version control and collaboration with Git and Github</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/errors.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">47</span>&nbsp; <span class="chapter-title">Common errors</span></span></a>
<span class="menu-text"><span class="chapter-number">48</span>&nbsp; <span class="chapter-title">Common errors</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/help.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">48</span>&nbsp; <span class="chapter-title">Getting help</span></span></a>
<span class="menu-text"><span class="chapter-number">49</span>&nbsp; <span class="chapter-title">Getting help</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/network_drives.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">49</span>&nbsp; <span class="chapter-title">R on network drives</span></span></a>
<span class="menu-text"><span class="chapter-number">50</span>&nbsp; <span class="chapter-title">R on network drives</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/data_table.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">50</span>&nbsp; <span class="chapter-title">Data Table</span></span></a>
<span class="menu-text"><span class="chapter-number">51</span>&nbsp; <span class="chapter-title">Data Table</span></span></a>
</div>
</li>
</ul>
Expand Down Expand Up @@ -3272,7 +3278,7 @@ <h2 data-number="32.8" class="anchored" data-anchor-id="resources"><span class="
</div>
</div>
</footer>
<script>var lightboxQuarto = GLightbox({"descPosition":"bottom","selector":".lightbox","openEffect":"zoom","closeEffect":"zoom","loop":false});
<script>var lightboxQuarto = GLightbox({"descPosition":"bottom","selector":".lightbox","closeEffect":"zoom","openEffect":"zoom","loop":false});
(function() {
let previousOnload = window.onload;
window.onload = () => {
Expand Down
10 changes: 5 additions & 5 deletions html_outputs/new_pages/epidemic_models.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 28 additions & 22 deletions html_outputs/new_pages/errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">


<title>47&nbsp; Common errors – The Epidemiologist R Handbook</title>
<title>48&nbsp; Common errors – The Epidemiologist R Handbook</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
Expand Down Expand Up @@ -231,7 +231,7 @@
<button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" role="button" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<i class="bi bi-layout-text-sidebar-reverse"></i>
</button>
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../new_pages/writing_functions.html">Miscellaneous</a></li><li class="breadcrumb-item"><a href="../new_pages/errors.html"><span class="chapter-number">47</span>&nbsp; <span class="chapter-title">Common errors</span></a></li></ol></nav>
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../new_pages/writing_functions.html">Miscellaneous</a></li><li class="breadcrumb-item"><a href="../new_pages/errors.html"><span class="chapter-number">48</span>&nbsp; <span class="chapter-title">Common errors</span></a></li></ol></nav>
<a class="flex-grow-1" role="navigation" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
</a>
<button type="button" class="btn quarto-search-button" aria-label="Search" onclick="window.quartoOpenSearch();">
Expand Down Expand Up @@ -615,6 +615,12 @@
<a href="../new_pages/shiny_basics.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">43</span>&nbsp; <span class="chapter-title">Dashboards with Shiny</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/quarto.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">44</span>&nbsp; <span class="chapter-title">Quarto</span></span></a>
</div>
</li>
</ul>
</li>
Expand All @@ -630,43 +636,43 @@
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/writing_functions.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">44</span>&nbsp; <span class="chapter-title">Writing functions</span></span></a>
<span class="menu-text"><span class="chapter-number">45</span>&nbsp; <span class="chapter-title">Writing functions</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/directories.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">45</span>&nbsp; <span class="chapter-title">Directory interactions</span></span></a>
<span class="menu-text"><span class="chapter-number">46</span>&nbsp; <span class="chapter-title">Directory interactions</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/collaboration.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">46</span>&nbsp; <span class="chapter-title">Version control and collaboration with Git and Github</span></span></a>
<span class="menu-text"><span class="chapter-number">47</span>&nbsp; <span class="chapter-title">Version control and collaboration with Git and Github</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/errors.html" class="sidebar-item-text sidebar-link active">
<span class="menu-text"><span class="chapter-number">47</span>&nbsp; <span class="chapter-title">Common errors</span></span></a>
<span class="menu-text"><span class="chapter-number">48</span>&nbsp; <span class="chapter-title">Common errors</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/help.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">48</span>&nbsp; <span class="chapter-title">Getting help</span></span></a>
<span class="menu-text"><span class="chapter-number">49</span>&nbsp; <span class="chapter-title">Getting help</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/network_drives.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">49</span>&nbsp; <span class="chapter-title">R on network drives</span></span></a>
<span class="menu-text"><span class="chapter-number">50</span>&nbsp; <span class="chapter-title">R on network drives</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../new_pages/data_table.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">50</span>&nbsp; <span class="chapter-title">Data Table</span></span></a>
<span class="menu-text"><span class="chapter-number">51</span>&nbsp; <span class="chapter-title">Data Table</span></span></a>
</div>
</li>
</ul>
Expand All @@ -681,8 +687,8 @@
<h2 id="toc-title">Table of contents</h2>

<ul>
<li><a href="#interpreting-error-messages" id="toc-interpreting-error-messages" class="nav-link active" data-scroll-target="#interpreting-error-messages"><span class="header-section-number">47.1</span> Interpreting error messages</a></li>
<li><a href="#common-errors" id="toc-common-errors" class="nav-link" data-scroll-target="#common-errors"><span class="header-section-number">47.2</span> Common errors</a>
<li><a href="#interpreting-error-messages" id="toc-interpreting-error-messages" class="nav-link active" data-scroll-target="#interpreting-error-messages"><span class="header-section-number">48.1</span> Interpreting error messages</a></li>
<li><a href="#common-errors" id="toc-common-errors" class="nav-link" data-scroll-target="#common-errors"><span class="header-section-number">48.2</span> Common errors</a>
<ul class="collapse">
<li><a href="#typo-errors" id="toc-typo-errors" class="nav-link" data-scroll-target="#typo-errors">Typo errors</a></li>
<li><a href="#package-errors" id="toc-package-errors" class="nav-link" data-scroll-target="#package-errors">Package errors</a></li>
Expand All @@ -694,16 +700,16 @@ <h2 id="toc-title">Table of contents</h2>
<li><a href="#r-markdown-errors" id="toc-r-markdown-errors" class="nav-link" data-scroll-target="#r-markdown-errors">R Markdown errors</a></li>
<li><a href="#miscellaneous" id="toc-miscellaneous" class="nav-link" data-scroll-target="#miscellaneous">Miscellaneous</a></li>
</ul></li>
<li><a href="#resources" id="toc-resources" class="nav-link" data-scroll-target="#resources"><span class="header-section-number">47.3</span> Resources</a></li>
<li><a href="#resources" id="toc-resources" class="nav-link" data-scroll-target="#resources"><span class="header-section-number">48.3</span> Resources</a></li>
</ul>
</nav>
</div>
<!-- main -->
<main class="content" id="quarto-document-content">

<header id="title-block-header" class="quarto-title-block default"><nav class="quarto-page-breadcrumbs quarto-title-breadcrumbs d-none d-lg-block" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../new_pages/writing_functions.html">Miscellaneous</a></li><li class="breadcrumb-item"><a href="../new_pages/errors.html"><span class="chapter-number">47</span>&nbsp; <span class="chapter-title">Common errors</span></a></li></ol></nav>
<header id="title-block-header" class="quarto-title-block default"><nav class="quarto-page-breadcrumbs quarto-title-breadcrumbs d-none d-lg-block" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../new_pages/writing_functions.html">Miscellaneous</a></li><li class="breadcrumb-item"><a href="../new_pages/errors.html"><span class="chapter-number">48</span>&nbsp; <span class="chapter-title">Common errors</span></a></li></ol></nav>
<div class="quarto-title">
<h1 class="title"><span class="chapter-number">47</span>&nbsp; <span class="chapter-title">Common errors</span></h1>
<h1 class="title"><span class="chapter-number">48</span>&nbsp; <span class="chapter-title">Common errors</span></h1>
</div>


Expand All @@ -721,13 +727,13 @@ <h1 class="title"><span class="chapter-number">47</span>&nbsp; <span class="chap


<p>This page includes a running list of common errors and suggests solutions for troubleshooting them.</p>
<section id="interpreting-error-messages" class="level2" data-number="47.1">
<h2 data-number="47.1" class="anchored" data-anchor-id="interpreting-error-messages"><span class="header-section-number">47.1</span> Interpreting error messages</h2>
<section id="interpreting-error-messages" class="level2" data-number="48.1">
<h2 data-number="48.1" class="anchored" data-anchor-id="interpreting-error-messages"><span class="header-section-number">48.1</span> Interpreting error messages</h2>
<p>R errors can be cryptic at times, so Google is your friend. Search the error message with “R” and look for recent posts in <a href="www.StackExchange.com">StackExchange.com</a>, <a href="https://stackoverflow.com/">stackoverflow.com</a>, <a href="forum.posit.co">forum.posit.co</a>, twitter (#rstats), and other forums used by programmers to filed questions and answers. Try to find recent posts that have solved similar problems.</p>
<p>If after much searching you cannot find an answer to your problem, consider creating a <em>reproducible example</em> (“reprex”) and posting the question yourself. See the page on <a href="../new_pages/help.html">Getting help</a> for tips on how to create and post a reproducible example to forums.</p>
</section>
<section id="common-errors" class="level2" data-number="47.2">
<h2 data-number="47.2" class="anchored" data-anchor-id="common-errors"><span class="header-section-number">47.2</span> Common errors</h2>
<section id="common-errors" class="level2" data-number="48.2">
<h2 data-number="48.2" class="anchored" data-anchor-id="common-errors"><span class="header-section-number">48.2</span> Common errors</h2>
<p>Below, we list some common errors and potential explanations/solutions. Some of these are borrowed from Noam Ross who analyzed the most common forum posts on Stack Overflow about R error messages (see analysis <a href="https://github.com/noamross/zero-dependency-problems/blob/master/misc/stack-overflow-common-r-errors.md">here</a>).</p>
<section id="typo-errors" class="level3 unnumbered">
<h3 class="unnumbered anchored" data-anchor-id="typo-errors">Typo errors</h3>
Expand Down Expand Up @@ -794,8 +800,8 @@ <h3 class="unnumbered anchored" data-anchor-id="miscellaneous">Miscellaneous</h3
<!-- ======================================================= -->
</section>
</section>
<section id="resources" class="level2" data-number="47.3">
<h2 data-number="47.3" class="anchored" data-anchor-id="resources"><span class="header-section-number">47.3</span> Resources</h2>
<section id="resources" class="level2" data-number="48.3">
<h2 data-number="48.3" class="anchored" data-anchor-id="resources"><span class="header-section-number">48.3</span> Resources</h2>
<p>This is another blog post that lists common <a href="https://www.r-bloggers.com/2016/06/common-r-programming-errors-faced-by-beginners/">R programming errors faced by beginners</a></p>
<p><a href="https://rstats.wtf/debugging-r">Debugging your code</a></p>
<p><a href="https://adv-r.hadley.nz/debugging.html">Advanced debugging</a></p>
Expand Down Expand Up @@ -1371,12 +1377,12 @@ <h2 data-number="47.3" class="anchored" data-anchor-id="resources"><span class="
<nav class="page-navigation">
<div class="nav-page nav-page-previous">
<a href="../new_pages/collaboration.html" class="pagination-link" aria-label="Version control and collaboration with Git and Github">
<i class="bi bi-arrow-left-short"></i> <span class="nav-page-text"><span class="chapter-number">46</span>&nbsp; <span class="chapter-title">Version control and collaboration with Git and Github</span></span>
<i class="bi bi-arrow-left-short"></i> <span class="nav-page-text"><span class="chapter-number">47</span>&nbsp; <span class="chapter-title">Version control and collaboration with Git and Github</span></span>
</a>
</div>
<div class="nav-page nav-page-next">
<a href="../new_pages/help.html" class="pagination-link" aria-label="Getting help">
<span class="nav-page-text"><span class="chapter-number">48</span>&nbsp; <span class="chapter-title">Getting help</span></span> <i class="bi bi-arrow-right-short"></i>
<span class="nav-page-text"><span class="chapter-number">49</span>&nbsp; <span class="chapter-title">Getting help</span></span> <i class="bi bi-arrow-right-short"></i>
</a>
</div>
</nav>
Expand Down
Loading

0 comments on commit ddcd5e9

Please sign in to comment.