Browse Source

Rebuild everything

master
Lukas Burk 1 year ago
parent
commit
f603c57112
9 changed files with 178 additions and 178 deletions
  1. +1
    -1
      DESCRIPTION
  2. +1
    -1
      docs/ISSUE_TEMPLATE.html
  3. +1
    -1
      docs/SUPPORT.html
  4. +134
    -134
      docs/articles/ocarina-of-time-100-.html
  5. BIN
     
  6. BIN
     
  7. +38
    -38
      docs/index.html
  8. +2
    -2
      docs/news/index.html
  9. +1
    -1
      docs/pkgdown.yml

+ 1
- 1
DESCRIPTION View File

@@ -34,4 +34,4 @@ ByteCompile: true
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 6.1.0
RoxygenNote: 6.1.1

+ 1
- 1
docs/ISSUE_TEMPLATE.html View File

@@ -117,7 +117,7 @@
<p>Please include a minimal reproducible example (AKA a reprex). If you’ve never heard of a <a href="http://reprex.tidyverse.org/">reprex</a> before, start by reading <a href="https://www.tidyverse.org/help/#reprex" class="uri">https://www.tidyverse.org/help/#reprex</a>.</p>
<hr>
<p>Brief description of the problem</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" data-line-number="1"><span class="co"># insert reprex here</span></a></code></pre></div>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" title="1"><span class="co"># insert reprex here</span></a></code></pre></div>


</div>


+ 1
- 1
docs/SUPPORT.html View File

@@ -124,7 +124,7 @@
</li>
<li>If you’re not sure: let the community help you figure it out! If your problem <em>is</em> a bug or a feature request, you can easily return here and report it.</li>
</ul>
<p>Before opening a new issue, be sure to <a href="https://github.com/tidyverse/speedrunr/issues">search issues and pull requests</a> to make sure the bug hasn’t been reported and/or already fixed in the development version. By default, the search will be pre-populated with <code>is:issue is:open</code>. You can <a href="https://help.github.com/articles/searching-issues-and-pull-requests/">edit the qualifiers</a> (e.g. <code>is:pr</code>, <code>is:closed</code>) as needed. For example, you’d simply remove <code>is:open</code> to search <em>all</em> issues in the repo, open or closed.</p>
<p>Before opening a new issue, be sure to <a href="https://github.com/tidyverse/speedrunr/issues">search issues and pull requests</a> to make sure the bug hasn’t been reported and/or already fixed in the development version. By default, the search will be pre-populated with <code>is:issue is:open</code>. You can <a href="https://help.github.com/articles/searching-issues-and-pull-requests/">edit the qualifiers</a> (e.g. <code>is:pr</code>, <code>is:closed</code>) as needed. For example, you’d simply remove <code>is:open</code> to search <em>all</em> issues in the repo, open or closed.</p>
<p>If you <em>are</em> in the right place, and need to file an issue, please review the <a href="https://www.tidyverse.org/contribute/#issues">“File issues”</a> paragraph from the tidyverse contributing guidelines.</p>
<p>Thanks for your help!</p>
</div>


+ 134
- 134
docs/articles/ocarina-of-time-100-.html View File

@@ -82,7 +82,7 @@
<h1>Ocarina of Time 100%</h1>
<h4 class="author">Lukas Burk</h4>
<h4 class="date">2018-11-02</h4>
<h4 class="date">2018-11-13</h4>
<small class="dont-index">Source: <a href="https://github.com/jemus42/speedrunr/blob/master/vignettes/ocarina-of-time-100-.Rmd"><code>vignettes/ocarina-of-time-100-.Rmd</code></a></small>
<div class="hidden name"><code>ocarina-of-time-100-.Rmd</code></div>
@@ -96,82 +96,82 @@
<h2 class="hasAnchor">
<a href="#identify-what-you-want" class="anchor"></a>Identify what you want</h2>
<p>First up we need the game’s ID and category ID. That’s easy:</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" data-line-number="1"><span class="kw">library</span>(speedrunr)</a>
<a class="sourceLine" id="cb1-2" data-line-number="2"></a>
<a class="sourceLine" id="cb1-3" data-line-number="3"><span class="kw"><a href="../reference/get_games.html">get_games</a></span>(<span class="st">"Ocarina of Time"</span>)</a>
<a class="sourceLine" id="cb1-4" data-line-number="4"><span class="co">#&gt; # A tibble: 7 x 9</span></a>
<a class="sourceLine" id="cb1-5" data-line-number="5"><span class="co">#&gt; id name_internatio… name_twitch name_abbr weblink released </span></a>
<a class="sourceLine" id="cb1-6" data-line-number="6"><span class="co">#&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;date&gt; </span></a>
<a class="sourceLine" id="cb1-7" data-line-number="7"><span class="co">#&gt; 1 j1l9… The Legend of Z… The Legend… oot https:… 1998-11-21</span></a>
<a class="sourceLine" id="cb1-8" data-line-number="8"><span class="co">#&gt; 2 kdkj… The Legend of Z… The Legend… ootmq https:… 2002-01-01</span></a>
<a class="sourceLine" id="cb1-9" data-line-number="9"><span class="co">#&gt; 3 268v… The Legend of Z… The Legend… oot3d https:… 2011-06-16</span></a>
<a class="sourceLine" id="cb1-10" data-line-number="10"><span class="co">#&gt; 4 nd2q… Roblox Ocarina … ROBLOX root https:… 2008-10-24</span></a>
<a class="sourceLine" id="cb1-11" data-line-number="11"><span class="co">#&gt; 5 76rk… Ocarina of Time… The Legend… ootextras https:… 1998-11-21</span></a>
<a class="sourceLine" id="cb1-12" data-line-number="12"><span class="co">#&gt; 6 m1zr… Ocarina of Time… Ocarina of… ootbq https:… 2015-11-13</span></a>
<a class="sourceLine" id="cb1-13" data-line-number="13"><span class="co">#&gt; 7 v1po… SM64: Ocarina o… SM64: Ocar… sm64oot https:… 2018-03-26</span></a>
<a class="sourceLine" id="cb1-14" data-line-number="14"><span class="co">#&gt; # ... with 3 more variables: released_year &lt;int&gt;, romhack &lt;lgl&gt;,</span></a>
<a class="sourceLine" id="cb1-15" data-line-number="15"><span class="co">#&gt; # created &lt;dttm&gt;</span></a></code></pre></div>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="kw"><a href="../reference/get_categories.html">get_categories</a></span>(<span class="st">"j1l9qz1g"</span>)</a>
<a class="sourceLine" id="cb2-2" data-line-number="2"><span class="co">#&gt; # A tibble: 12 x 6</span></a>
<a class="sourceLine" id="cb2-3" data-line-number="3"><span class="co">#&gt; id name link type miscellaneous rules </span></a>
<a class="sourceLine" id="cb2-4" data-line-number="4"><span class="co">#&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;lgl&gt; &lt;chr&gt; </span></a>
<a class="sourceLine" id="cb2-5" data-line-number="5"><span class="co">#&gt; 1 q255j… 100% https://www.s… per-g… FALSE "**100% Rules**:\r\…</span></a>
<a class="sourceLine" id="cb2-6" data-line-number="6"><span class="co">#&gt; 2 824qn… 100% https://www.s… per-l… FALSE "General Rules:\r\n…</span></a>
<a class="sourceLine" id="cb2-7" data-line-number="7"><span class="co">#&gt; 3 zdnoz… All Du… https://www.s… per-g… FALSE "**All Dungeons Rul…</span></a>
<a class="sourceLine" id="cb2-8" data-line-number="8"><span class="co">#&gt; 4 z275w… Any% https://www.s… per-g… FALSE "**Any% Rules**:\r\…</span></a>
<a class="sourceLine" id="cb2-9" data-line-number="9"><span class="co">#&gt; 5 02qe4… Any% https://www.s… per-l… FALSE "General Rules:\r\n…</span></a>
<a class="sourceLine" id="cb2-10" data-line-number="10"><span class="co">#&gt; 6 9kvr8… Ganonl… https://www.s… per-g… TRUE "**Ganonless Rules*…</span></a>
<a class="sourceLine" id="cb2-11" data-line-number="11"><span class="co">#&gt; 7 zd35j… Glitch… https://www.s… per-g… FALSE "" </span></a>
<a class="sourceLine" id="cb2-12" data-line-number="12"><span class="co">#&gt; 8 ndxlw… Glitch… https://www.s… per-l… FALSE "General Rules:\r\n…</span></a>
<a class="sourceLine" id="cb2-13" data-line-number="13"><span class="co">#&gt; 9 jdrwr… MST https://www.s… per-g… FALSE "**Medallions/Stone…</span></a>
<a class="sourceLine" id="cb2-14" data-line-number="14"><span class="co">#&gt; 10 9d85y… No IM/… https://www.s… per-g… FALSE "**No IM/WW Rules**…</span></a>
<a class="sourceLine" id="cb2-15" data-line-number="15"><span class="co">#&gt; 11 xd1wj… No Wro… https://www.s… per-g… TRUE "**No Wrong Warp Ru…</span></a>
<a class="sourceLine" id="cb2-16" data-line-number="16"><span class="co">#&gt; 12 rklm8… Restri… https://www.s… per-l… TRUE "General Rules:\r\n…</span></a></code></pre></div>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" title="1"><span class="kw">library</span>(speedrunr)</a>
<a class="sourceLine" id="cb1-2" title="2"></a>
<a class="sourceLine" id="cb1-3" title="3"><span class="kw"><a href="../reference/get_games.html">get_games</a></span>(<span class="st">"Ocarina of Time"</span>)</a>
<a class="sourceLine" id="cb1-4" title="4"><span class="co">#&gt; # A tibble: 7 x 9</span></a>
<a class="sourceLine" id="cb1-5" title="5"><span class="co">#&gt; id name_internatio… name_twitch name_abbr weblink released </span></a>
<a class="sourceLine" id="cb1-6" title="6"><span class="co">#&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;date&gt; </span></a>
<a class="sourceLine" id="cb1-7" title="7"><span class="co">#&gt; 1 j1l9… The Legend of Z… The Legend… oot https:… 1998-11-21</span></a>
<a class="sourceLine" id="cb1-8" title="8"><span class="co">#&gt; 2 kdkj… The Legend of Z… The Legend… ootmq https:… 2002-01-01</span></a>
<a class="sourceLine" id="cb1-9" title="9"><span class="co">#&gt; 3 268v… The Legend of Z… The Legend… oot3d https:… 2011-06-16</span></a>
<a class="sourceLine" id="cb1-10" title="10"><span class="co">#&gt; 4 nd2q… Roblox Ocarina … ROBLOX root https:… 2008-10-24</span></a>
<a class="sourceLine" id="cb1-11" title="11"><span class="co">#&gt; 5 76rk… Ocarina of Time… The Legend… ootextras https:… 1998-11-21</span></a>
<a class="sourceLine" id="cb1-12" title="12"><span class="co">#&gt; 6 m1zr… Ocarina of Time… Ocarina of… ootbq https:… 2015-11-13</span></a>
<a class="sourceLine" id="cb1-13" title="13"><span class="co">#&gt; 7 v1po… SM64: Ocarina o… SM64: Ocar… sm64oot https:… 2018-03-26</span></a>
<a class="sourceLine" id="cb1-14" title="14"><span class="co">#&gt; # ... with 3 more variables: released_year &lt;int&gt;, romhack &lt;lgl&gt;,</span></a>
<a class="sourceLine" id="cb1-15" title="15"><span class="co">#&gt; # created &lt;dttm&gt;</span></a></code></pre></div>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb2-1" title="1"><span class="kw"><a href="../reference/get_categories.html">get_categories</a></span>(<span class="st">"j1l9qz1g"</span>)</a>
<a class="sourceLine" id="cb2-2" title="2"><span class="co">#&gt; # A tibble: 12 x 6</span></a>
<a class="sourceLine" id="cb2-3" title="3"><span class="co">#&gt; id name link type miscellaneous rules </span></a>
<a class="sourceLine" id="cb2-4" title="4"><span class="co">#&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;lgl&gt; &lt;chr&gt; </span></a>
<a class="sourceLine" id="cb2-5" title="5"><span class="co">#&gt; 1 q255j… 100% https://www.s… per-g… FALSE "**100% Rules**:\r\…</span></a>
<a class="sourceLine" id="cb2-6" title="6"><span class="co">#&gt; 2 824qn… 100% https://www.s… per-l… FALSE "General Rules:\r\n…</span></a>
<a class="sourceLine" id="cb2-7" title="7"><span class="co">#&gt; 3 zdnoz… All Du… https://www.s… per-g… FALSE "**All Dungeons Rul…</span></a>
<a class="sourceLine" id="cb2-8" title="8"><span class="co">#&gt; 4 z275w… Any% https://www.s… per-g… FALSE "**Any% Rules**:\r\…</span></a>
<a class="sourceLine" id="cb2-9" title="9"><span class="co">#&gt; 5 02qe4… Any% https://www.s… per-l… FALSE "General Rules:\r\n…</span></a>
<a class="sourceLine" id="cb2-10" title="10"><span class="co">#&gt; 6 9kvr8… Ganonl… https://www.s… per-g… TRUE "**Ganonless Rules*…</span></a>
<a class="sourceLine" id="cb2-11" title="11"><span class="co">#&gt; 7 zd35j… Glitch… https://www.s… per-g… FALSE "" </span></a>
<a class="sourceLine" id="cb2-12" title="12"><span class="co">#&gt; 8 ndxlw… Glitch… https://www.s… per-l… FALSE "General Rules:\r\n…</span></a>
<a class="sourceLine" id="cb2-13" title="13"><span class="co">#&gt; 9 jdrwr… MST https://www.s… per-g… FALSE "**Medallions/Stone…</span></a>
<a class="sourceLine" id="cb2-14" title="14"><span class="co">#&gt; 10 9d85y… No IM/… https://www.s… per-g… FALSE "**No IM/WW Rules**…</span></a>
<a class="sourceLine" id="cb2-15" title="15"><span class="co">#&gt; 11 xd1wj… No Wro… https://www.s… per-g… TRUE "**No Wrong Warp Ru…</span></a>
<a class="sourceLine" id="cb2-16" title="16"><span class="co">#&gt; 12 rklm8… Restri… https://www.s… per-l… TRUE "General Rules:\r\n…</span></a></code></pre></div>
<p>So we’re good.</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb3-1" data-line-number="1">game &lt;-<span class="st"> "j1l9qz1g"</span></a>
<a class="sourceLine" id="cb3-2" data-line-number="2">category &lt;-<span class="st"> "q255jw2o"</span></a>
<a class="sourceLine" id="cb3-3" data-line-number="3"></a>
<a class="sourceLine" id="cb3-4" data-line-number="4">oot100 &lt;-<span class="st"> </span><span class="kw"><a href="../reference/get_runs.html">get_runs</a></span>(<span class="dt">game =</span> <span class="st">"j1l9qz1g"</span>, <span class="dt">category =</span> <span class="st">"q255jw2o"</span>, <span class="dt">max =</span> <span class="ot">Inf</span>)</a></code></pre></div>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb3-1" title="1">game &lt;-<span class="st"> "j1l9qz1g"</span></a>
<a class="sourceLine" id="cb3-2" title="2">category &lt;-<span class="st"> "q255jw2o"</span></a>
<a class="sourceLine" id="cb3-3" title="3"></a>
<a class="sourceLine" id="cb3-4" title="4">oot100 &lt;-<span class="st"> </span><span class="kw"><a href="../reference/get_runs.html">get_runs</a></span>(<span class="dt">game =</span> <span class="st">"j1l9qz1g"</span>, <span class="dt">category =</span> <span class="st">"q255jw2o"</span>, <span class="dt">max =</span> <span class="ot">Inf</span>)</a></code></pre></div>
<p>Note that I’m useing <code>max = Inf</code> to make sure I get <em>all</em> the runs.</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb4-1" data-line-number="1"><span class="kw">str</span>(oot100)</a>
<a class="sourceLine" id="cb4-2" data-line-number="2"><span class="co">#&gt; Classes 'tbl_df', 'tbl' and 'data.frame': 540 obs. of 22 variables:</span></a>
<a class="sourceLine" id="cb4-3" data-line-number="3"><span class="co">#&gt; $ id : chr "z11p7k9z" "yl4ej6rm" "z51vk85m" "yl4r56rm" ...</span></a>
<a class="sourceLine" id="cb4-4" data-line-number="4"><span class="co">#&gt; $ weblink : chr "https://www.speedrun.com/oot/run/z11p7k9z" "https://www.speedrun.com/oot/run/yl4ej6rm" "https://www.speedrun.com/oot/run/z51vk85m" "https://www.speedrun.com/oot/run/yl4r56rm" ...</span></a>
<a class="sourceLine" id="cb4-5" data-line-number="5"><span class="co">#&gt; $ game : chr "j1l9qz1g" "j1l9qz1g" "j1l9qz1g" "j1l9qz1g" ...</span></a>
<a class="sourceLine" id="cb4-6" data-line-number="6"><span class="co">#&gt; $ level : logi NA NA NA NA NA NA ...</span></a>
<a class="sourceLine" id="cb4-7" data-line-number="7"><span class="co">#&gt; $ category : chr "q255jw2o" "q255jw2o" "q255jw2o" "q255jw2o" ...</span></a>
<a class="sourceLine" id="cb4-8" data-line-number="8"><span class="co">#&gt; $ videos : chr "https://www.youtube.com/watch?v=HaUTONEwj8I" "https://www.youtube.com/watch?v=ad-56T4uJto" "https://www.youtube.com/watch?v=jTH_lZNUeGA" "https://www.youtube.com/watch?v=gZjxgUpNNOM" ...</span></a>
<a class="sourceLine" id="cb4-9" data-line-number="9"><span class="co">#&gt; $ status : chr "verified" "verified" "verified" "verified" ...</span></a>
<a class="sourceLine" id="cb4-10" data-line-number="10"><span class="co">#&gt; $ comment : chr "2nd try dampe" "Biggest mistake was losing 1:20 to forgetting a heart piece lol. Average RNG, 40 seconds to save at each of fis"| __truncated__ NA NA ...</span></a>
<a class="sourceLine" id="cb4-11" data-line-number="11"><span class="co">#&gt; $ player_id : chr "e8e5v680" "qjn35kwx" "v819rrxp" "v819rrxp" ...</span></a>
<a class="sourceLine" id="cb4-12" data-line-number="12"><span class="co">#&gt; $ player_url : chr "https://www.speedrun.com/user/zfg" "https://www.speedrun.com/user/dannyb21892" "https://www.speedrun.com/user/Marco" "https://www.speedrun.com/user/Marco" ...</span></a>
<a class="sourceLine" id="cb4-13" data-line-number="13"><span class="co">#&gt; $ player_name : chr "zfg" "dannyb21892" "Marco" "Marco" ...</span></a>
<a class="sourceLine" id="cb4-14" data-line-number="14"><span class="co">#&gt; $ player_role : chr "user" "user" "user" "user" ...</span></a>
<a class="sourceLine" id="cb4-15" data-line-number="15"><span class="co">#&gt; $ player_signup : POSIXct, format: "2015-02-17 03:55:57" "2015-10-28 13:39:39" ...</span></a>
<a class="sourceLine" id="cb4-16" data-line-number="16"><span class="co">#&gt; $ date : Date, format: "2018-10-30" "2018-10-13" ...</span></a>
<a class="sourceLine" id="cb4-17" data-line-number="17"><span class="co">#&gt; $ submitted : POSIXct, format: "2018-10-31 01:33:08" "2018-10-13 20:39:56" ...</span></a>
<a class="sourceLine" id="cb4-18" data-line-number="18"><span class="co">#&gt; $ time_primary : int 14092 14983 14308 14357 15211 14168 14447 20884 15577 22987 ...</span></a>
<a class="sourceLine" id="cb4-19" data-line-number="19"><span class="co">#&gt; $ time_realtime : int 14092 14983 14308 14357 15211 14168 14447 20884 15577 22987 ...</span></a>
<a class="sourceLine" id="cb4-20" data-line-number="20"><span class="co">#&gt; $ time_ingame : int 0 0 0 0 0 0 0 0 0 0 ...</span></a>
<a class="sourceLine" id="cb4-21" data-line-number="21"><span class="co">#&gt; $ time_hms : 'hms' num 03:54:52 04:09:43 03:58:28 03:59:17 ...</span></a>
<a class="sourceLine" id="cb4-22" data-line-number="22"><span class="co">#&gt; ..- attr(*, "units")= chr "secs"</span></a>
<a class="sourceLine" id="cb4-23" data-line-number="23"><span class="co">#&gt; $ system_platform: chr "nzelreqp" "nzelreqp" "nzelreqp" "nzelreqp" ...</span></a>
<a class="sourceLine" id="cb4-24" data-line-number="24"><span class="co">#&gt; $ system_emulated: logi FALSE FALSE FALSE FALSE FALSE FALSE ...</span></a>
<a class="sourceLine" id="cb4-25" data-line-number="25"><span class="co">#&gt; $ system_region : chr "o316x197" "o316x197" "o316x197" "o316x197" ...</span></a></code></pre></div>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb4-1" title="1"><span class="kw">str</span>(oot100)</a>
<a class="sourceLine" id="cb4-2" title="2"><span class="co">#&gt; Classes 'tbl_df', 'tbl' and 'data.frame': 539 obs. of 22 variables:</span></a>
<a class="sourceLine" id="cb4-3" title="3"><span class="co">#&gt; $ id : chr "z11p7k9z" "yl4ej6rm" "z51vk85m" "yl4r56rm" ...</span></a>
<a class="sourceLine" id="cb4-4" title="4"><span class="co">#&gt; $ weblink : chr "https://www.speedrun.com/oot/run/z11p7k9z" "https://www.speedrun.com/oot/run/yl4ej6rm" "https://www.speedrun.com/oot/run/z51vk85m" "https://www.speedrun.com/oot/run/yl4r56rm" ...</span></a>
<a class="sourceLine" id="cb4-5" title="5"><span class="co">#&gt; $ game : chr "j1l9qz1g" "j1l9qz1g" "j1l9qz1g" "j1l9qz1g" ...</span></a>
<a class="sourceLine" id="cb4-6" title="6"><span class="co">#&gt; $ level : logi NA NA NA NA NA NA ...</span></a>
<a class="sourceLine" id="cb4-7" title="7"><span class="co">#&gt; $ category : chr "q255jw2o" "q255jw2o" "q255jw2o" "q255jw2o" ...</span></a>
<a class="sourceLine" id="cb4-8" title="8"><span class="co">#&gt; $ videos : chr "https://www.youtube.com/watch?v=HaUTONEwj8I" "https://www.youtube.com/watch?v=ad-56T4uJto" "https://www.youtube.com/watch?v=jTH_lZNUeGA" "https://www.youtube.com/watch?v=gZjxgUpNNOM" ...</span></a>
<a class="sourceLine" id="cb4-9" title="9"><span class="co">#&gt; $ status : chr "verified" "verified" "verified" "verified" ...</span></a>
<a class="sourceLine" id="cb4-10" title="10"><span class="co">#&gt; $ comment : chr "2nd try dampe" "Biggest mistake was losing 1:20 to forgetting a heart piece lol. Average RNG, 40 seconds to save at each of fis"| __truncated__ NA NA ...</span></a>
<a class="sourceLine" id="cb4-11" title="11"><span class="co">#&gt; $ player_id : chr "e8e5v680" "qjn35kwx" "v819rrxp" "v819rrxp" ...</span></a>
<a class="sourceLine" id="cb4-12" title="12"><span class="co">#&gt; $ player_url : chr "https://www.speedrun.com/user/zfg" "https://www.speedrun.com/user/dannyb21892" "https://www.speedrun.com/user/Marco" "https://www.speedrun.com/user/Marco" ...</span></a>
<a class="sourceLine" id="cb4-13" title="13"><span class="co">#&gt; $ player_name : chr "zfg" "dannyb21892" "Marco" "Marco" ...</span></a>
<a class="sourceLine" id="cb4-14" title="14"><span class="co">#&gt; $ player_role : chr "user" "user" "user" "user" ...</span></a>
<a class="sourceLine" id="cb4-15" title="15"><span class="co">#&gt; $ player_signup : POSIXct, format: "2015-02-17 03:55:57" "2015-10-28 13:39:39" ...</span></a>
<a class="sourceLine" id="cb4-16" title="16"><span class="co">#&gt; $ date : Date, format: "2018-10-30" "2018-10-13" ...</span></a>
<a class="sourceLine" id="cb4-17" title="17"><span class="co">#&gt; $ submitted : POSIXct, format: "2018-10-31 01:33:08" "2018-10-13 20:39:56" ...</span></a>
<a class="sourceLine" id="cb4-18" title="18"><span class="co">#&gt; $ time_primary : int 14092 14983 14308 14357 15211 14168 14447 20884 15577 22987 ...</span></a>
<a class="sourceLine" id="cb4-19" title="19"><span class="co">#&gt; $ time_realtime : int 14092 14983 14308 14357 15211 14168 14447 20884 15577 22987 ...</span></a>
<a class="sourceLine" id="cb4-20" title="20"><span class="co">#&gt; $ time_ingame : int 0 0 0 0 0 0 0 0 0 0 ...</span></a>
<a class="sourceLine" id="cb4-21" title="21"><span class="co">#&gt; $ time_hms : 'hms' num 03:54:52 04:09:43 03:58:28 03:59:17 ...</span></a>
<a class="sourceLine" id="cb4-22" title="22"><span class="co">#&gt; ..- attr(*, "units")= chr "secs"</span></a>
<a class="sourceLine" id="cb4-23" title="23"><span class="co">#&gt; $ system_platform: chr "nzelreqp" "nzelreqp" "nzelreqp" "nzelreqp" ...</span></a>
<a class="sourceLine" id="cb4-24" title="24"><span class="co">#&gt; $ system_emulated: logi FALSE FALSE FALSE FALSE FALSE FALSE ...</span></a>
<a class="sourceLine" id="cb4-25" title="25"><span class="co">#&gt; $ system_region : chr "o316x197" "o316x197" "o316x197" "o316x197" ...</span></a></code></pre></div>
<p>We want some additional data:</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb5-1" data-line-number="1"><span class="kw">library</span>(dplyr)</a>
<a class="sourceLine" id="cb5-2" data-line-number="2"><span class="kw">library</span>(knitr)</a>
<a class="sourceLine" id="cb5-3" data-line-number="3"></a>
<a class="sourceLine" id="cb5-4" data-line-number="4">oot100 &lt;-<span class="st"> </span>oot100 <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-5" data-line-number="5"><span class="st"> </span><span class="kw"><a href="../reference/add_miscdata.html">add_platforms</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-6" data-line-number="6"><span class="st"> </span><span class="kw"><a href="../reference/add_miscdata.html">add_regions</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-7" data-line-number="7"><span class="st"> </span><span class="kw"><a href="../reference/find_records.html">find_records</a></span>()</a>
<a class="sourceLine" id="cb5-8" data-line-number="8"></a>
<a class="sourceLine" id="cb5-9" data-line-number="9">oot100 <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb5-10" data-line-number="10"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/arrange.html">arrange</a></span>(time_hms) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-11" data-line-number="11"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(time_hms, player_name, date, system_platform, system_region) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-12" data-line-number="12"><span class="st"> </span><span class="kw">head</span>(<span class="dv">10</span>) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-13" data-line-number="13"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb5-1" title="1"><span class="kw">library</span>(dplyr)</a>
<a class="sourceLine" id="cb5-2" title="2"><span class="kw">library</span>(knitr)</a>
<a class="sourceLine" id="cb5-3" title="3"></a>
<a class="sourceLine" id="cb5-4" title="4">oot100 &lt;-<span class="st"> </span>oot100 <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-5" title="5"><span class="st"> </span><span class="kw"><a href="../reference/add_miscdata.html">add_platforms</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-6" title="6"><span class="st"> </span><span class="kw"><a href="../reference/add_miscdata.html">add_regions</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-7" title="7"><span class="st"> </span><span class="kw"><a href="../reference/find_records.html">find_records</a></span>()</a>
<a class="sourceLine" id="cb5-8" title="8"></a>
<a class="sourceLine" id="cb5-9" title="9">oot100 <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb5-10" title="10"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/arrange.html">arrange</a></span>(time_hms) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-11" title="11"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(time_hms, player_name, date, system_platform, system_region) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-12" title="12"><span class="st"> </span><span class="kw">head</span>(<span class="dv">10</span>) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-13" title="13"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="left">time_hms</th>
@@ -258,69 +258,69 @@
<h2 class="hasAnchor">
<a href="#category-overview" class="anchor"></a>Category Overview</h2>
<p>Now we can take a look at the categories (recent) history, with highlighted records:</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb6-1" data-line-number="1"><span class="kw">library</span>(ggplot2)</a>
<a class="sourceLine" id="cb6-2" data-line-number="2"><span class="kw">library</span>(ggrepel)</a>
<a class="sourceLine" id="cb6-3" data-line-number="3"><span class="kw">library</span>(hrbrthemes)</a>
<a class="sourceLine" id="cb6-4" data-line-number="4"><span class="kw">library</span>(hms)</a>
<a class="sourceLine" id="cb6-5" data-line-number="5"></a>
<a class="sourceLine" id="cb6-6" data-line-number="6">oot100 <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-7" data-line-number="7"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(time_hms <span class="op">&lt;</span><span class="st"> </span>hms<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/hms/topics/hms">hms</a></span>(<span class="dt">hours =</span> <span class="dv">6</span>)) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-8" data-line-number="8"><span class="st"> </span>{</a>
<a class="sourceLine" id="cb6-9" data-line-number="9"> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/ggplot">ggplot</a></span>(., <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(date, time_hms)) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-10" data-line-number="10"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_point">geom_point</a></span>(<span class="dt">size =</span> <span class="dv">1</span>, <span class="dt">alpha =</span> <span class="fl">.75</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-11" data-line-number="11"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_point">geom_point</a></span>(<span class="dt">size =</span> <span class="dv">2</span>, <span class="dt">data =</span> <span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(., record), <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(<span class="dt">color =</span> player_name)) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-12" data-line-number="12"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggrepel/topics/geom_text_repel">geom_label_repel</a></span>(<span class="dt">data =</span> <span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(., record),</a>
<a class="sourceLine" id="cb6-13" data-line-number="13"> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(<span class="dt">label =</span> time_hms, <span class="dt">color =</span> player_name),</a>
<a class="sourceLine" id="cb6-14" data-line-number="14"> <span class="dt">fill =</span> <span class="st">"white"</span>, <span class="dt">show.legend =</span> F) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-15" data-line-number="15"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_x_date</a></span>(<span class="dt">date_breaks =</span> <span class="st">"6 months"</span>, <span class="dt">date_labels =</span> <span class="st">"%b '%y"</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-16" data-line-number="16"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_y_time</a></span>(<span class="dt">breaks =</span> <span class="kw">seq</span>(<span class="dv">2</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">1</span><span class="op">/</span><span class="dv">3</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>),</a>
<a class="sourceLine" id="cb6-17" data-line-number="17"> <span class="dt">minor_breaks =</span> <span class="kw">seq</span>(<span class="dv">2</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">5</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span>)) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-18" data-line-number="18"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_brewer">scale_color_brewer</a></span>(<span class="dt">palette =</span> <span class="st">"Dark2"</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-19" data-line-number="19"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/labs">labs</a></span>(<span class="dt">title =</span> <span class="st">"Ocarina of Time: 100% Speedrun Record History"</span>,</a>
<a class="sourceLine" id="cb6-20" data-line-number="20"> <span class="dt">subtitle =</span> <span class="kw">paste0</span>(<span class="st">"All data from speedrun.com (n = "</span>, <span class="kw">nrow</span>(.), <span class="st">")"</span>),</a>
<a class="sourceLine" id="cb6-21" data-line-number="21"> <span class="dt">x =</span> <span class="st">"Date of Run"</span>, <span class="dt">y =</span> <span class="st">"Time"</span>,</a>
<a class="sourceLine" id="cb6-22" data-line-number="22"> <span class="dt">color =</span> <span class="st">"Runner"</span>, <span class="dt">caption =</span> <span class="st">"Data limited to sub 6h runs"</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-23" data-line-number="23"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/hrbrthemes/topics/theme_ipsum">theme_ipsum</a></span>() <span class="op">+</span></a>
<a class="sourceLine" id="cb6-24" data-line-number="24"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/theme">theme</a></span>(<span class="dt">legend.position =</span> <span class="st">"top"</span>)</a>
<a class="sourceLine" id="cb6-25" data-line-number="25"> }</a></code></pre></div>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb6-1" title="1"><span class="kw">library</span>(ggplot2)</a>
<a class="sourceLine" id="cb6-2" title="2"><span class="kw">library</span>(ggrepel)</a>
<a class="sourceLine" id="cb6-3" title="3"><span class="kw">library</span>(hrbrthemes)</a>
<a class="sourceLine" id="cb6-4" title="4"><span class="kw">library</span>(hms)</a>
<a class="sourceLine" id="cb6-5" title="5"></a>
<a class="sourceLine" id="cb6-6" title="6">oot100 <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-7" title="7"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(time_hms <span class="op">&lt;</span><span class="st"> </span>hms<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/hms/topics/hms">hms</a></span>(<span class="dt">hours =</span> <span class="dv">6</span>)) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-8" title="8"><span class="st"> </span>{</a>
<a class="sourceLine" id="cb6-9" title="9"> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/ggplot">ggplot</a></span>(., <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(date, time_hms)) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-10" title="10"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_point">geom_point</a></span>(<span class="dt">size =</span> <span class="dv">1</span>, <span class="dt">alpha =</span> <span class="fl">.75</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-11" title="11"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_point">geom_point</a></span>(<span class="dt">size =</span> <span class="dv">2</span>, <span class="dt">data =</span> <span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(., record), <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(<span class="dt">color =</span> player_name)) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-12" title="12"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggrepel/topics/geom_text_repel">geom_label_repel</a></span>(<span class="dt">data =</span> <span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(., record),</a>
<a class="sourceLine" id="cb6-13" title="13"> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(<span class="dt">label =</span> time_hms, <span class="dt">color =</span> player_name),</a>
<a class="sourceLine" id="cb6-14" title="14"> <span class="dt">fill =</span> <span class="st">"white"</span>, <span class="dt">show.legend =</span> F) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-15" title="15"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_x_date</a></span>(<span class="dt">date_breaks =</span> <span class="st">"6 months"</span>, <span class="dt">date_labels =</span> <span class="st">"%b '%y"</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-16" title="16"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_y_time</a></span>(<span class="dt">breaks =</span> <span class="kw">seq</span>(<span class="dv">2</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">1</span><span class="op">/</span><span class="dv">3</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>),</a>
<a class="sourceLine" id="cb6-17" title="17"> <span class="dt">minor_breaks =</span> <span class="kw">seq</span>(<span class="dv">2</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">5</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span>)) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-18" title="18"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_brewer">scale_color_brewer</a></span>(<span class="dt">palette =</span> <span class="st">"Dark2"</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-19" title="19"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/labs">labs</a></span>(<span class="dt">title =</span> <span class="st">"Ocarina of Time: 100% Speedrun Record History"</span>,</a>
<a class="sourceLine" id="cb6-20" title="20"> <span class="dt">subtitle =</span> <span class="kw">paste0</span>(<span class="st">"All data from speedrun.com (n = "</span>, <span class="kw">nrow</span>(.), <span class="st">")"</span>),</a>
<a class="sourceLine" id="cb6-21" title="21"> <span class="dt">x =</span> <span class="st">"Date of Run"</span>, <span class="dt">y =</span> <span class="st">"Time"</span>,</a>
<a class="sourceLine" id="cb6-22" title="22"> <span class="dt">color =</span> <span class="st">"Runner"</span>, <span class="dt">caption =</span> <span class="st">"Data limited to sub 6h runs"</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-23" title="23"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/hrbrthemes/topics/theme_ipsum">theme_ipsum</a></span>() <span class="op">+</span></a>
<a class="sourceLine" id="cb6-24" title="24"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/theme">theme</a></span>(<span class="dt">legend.position =</span> <span class="st">"top"</span>)</a>
<a class="sourceLine" id="cb6-25" title="25"> }</a></code></pre></div>
<p><img src="ocarina-of-time-100-_files/figure-html/oot_100_overview-1.png" width="768"></p>
<p>Please note that the data on speedrun.com does <em>not</em> cover the whole history. There are lots of older runs missing here, and unless the mods come together und do some historic backlogging, that’s as good as it gets for now.</p>
<p>We can also take a look at the recent developments:</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb7-1" data-line-number="1"><span class="kw">library</span>(lubridate)</a>
<a class="sourceLine" id="cb7-2" data-line-number="2"></a>
<a class="sourceLine" id="cb7-3" data-line-number="3">tmp &lt;-<span class="st"> </span>oot100 <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-4" data-line-number="4"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(time_hms <span class="op">&lt;</span><span class="st"> </span>hms<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/hms/topics/hms">hms</a></span>(<span class="dt">hours =</span> <span class="dv">4</span>, <span class="dt">minutes =</span> <span class="dv">30</span>),</a>
<a class="sourceLine" id="cb7-5" data-line-number="5"> date <span class="op">&gt;=</span><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/lubridate/topics/ymd">ymd</a></span>(<span class="st">"2018-01-01"</span>)) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-6" data-line-number="6"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(player_name, time_hms, date)</a>
<a class="sourceLine" id="cb7-7" data-line-number="7"></a>
<a class="sourceLine" id="cb7-8" data-line-number="8"><span class="kw"><a href="http://dplyr.tidyverse.org/reference/bind.html">bind_rows</a></span>(</a>
<a class="sourceLine" id="cb7-9" data-line-number="9"> tmp,</a>
<a class="sourceLine" id="cb7-10" data-line-number="10"> tmp <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-11" data-line-number="11"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(player_name) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-12" data-line-number="12"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/summarise.html">summarize</a></span>(<span class="dt">time_hms =</span> <span class="kw">min</span>(time_hms), <span class="dt">date =</span> <span class="kw"><a href="http://www.rdocumentation.org/packages/lubridate/topics/today">today</a></span>()) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-13" data-line-number="13"><span class="st"> </span>ungroup</a>
<a class="sourceLine" id="cb7-14" data-line-number="14">) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-15" data-line-number="15"><span class="st"> </span>{</a>
<a class="sourceLine" id="cb7-16" data-line-number="16"> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/ggplot">ggplot</a></span>(., <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(date, time_hms, <span class="dt">color =</span> player_name, <span class="dt">fill =</span> player_name)) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-17" data-line-number="17"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_point">geom_point</a></span>(<span class="dt">size =</span> <span class="dv">1</span>, <span class="dt">alpha =</span> <span class="fl">.75</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-18" data-line-number="18"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_path">geom_step</a></span>() <span class="op">+</span></a>
<a class="sourceLine" id="cb7-19" data-line-number="19"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggrepel/topics/geom_text_repel">geom_label_repel</a></span>(<span class="dt">data =</span> .</a>
<a class="sourceLine" id="cb7-20" data-line-number="20"> <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(player_name) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-21" data-line-number="21"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/summarise.html">summarize</a></span>(<span class="dt">y =</span> <span class="kw">min</span>(time_hms), <span class="dt">x =</span> <span class="kw">max</span>(date)),</a>
<a class="sourceLine" id="cb7-22" data-line-number="22"> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(<span class="dt">label =</span> <span class="kw">paste0</span>(player_name, <span class="st">": "</span>, y), <span class="dt">x =</span> x, <span class="dt">y =</span> y),</a>
<a class="sourceLine" id="cb7-23" data-line-number="23"> <span class="dt">color =</span> <span class="st">"black"</span>, <span class="dt">alpha =</span> <span class="fl">.75</span>, <span class="dt">show.legend =</span> F,</a>
<a class="sourceLine" id="cb7-24" data-line-number="24"> <span class="dt">hjust =</span> <span class="dv">1</span>, <span class="dt">direction =</span> <span class="st">"y"</span>, <span class="dt">nudge_x =</span> <span class="dv">60</span><span class="op">^</span><span class="dv">2</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-25" data-line-number="25"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_x_date</a></span>(<span class="dt">date_breaks =</span> <span class="st">"1 month"</span>, <span class="dt">date_labels =</span> <span class="st">"%b '%y"</span>,</a>
<a class="sourceLine" id="cb7-26" data-line-number="26"> <span class="dt">limits =</span> <span class="kw">c</span>(<span class="kw">as.Date</span>(<span class="ot">NA</span>), <span class="kw"><a href="http://www.rdocumentation.org/packages/lubridate/topics/today">today</a></span>() <span class="op">+</span><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/lubridate/topics/period">days</a></span>(<span class="dv">45</span>))) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-27" data-line-number="27"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_y_time</a></span>(<span class="dt">breaks =</span> <span class="kw">seq</span>(<span class="dv">0</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">1</span><span class="op">/</span><span class="dv">12</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>),</a>
<a class="sourceLine" id="cb7-28" data-line-number="28"> <span class="dt">minor_breaks =</span> <span class="kw">seq</span>(<span class="dv">0</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">1</span><span class="op">/</span><span class="dv">24</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span>)) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-29" data-line-number="29"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_brewer">scale_color_brewer</a></span>(<span class="dt">palette =</span> <span class="st">"Dark2"</span>, <span class="dt">guide =</span> F) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-30" data-line-number="30"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_brewer">scale_fill_brewer</a></span>(<span class="dt">palette =</span> <span class="st">"Dark2"</span>, <span class="dt">guide =</span> F) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-31" data-line-number="31"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/labs">labs</a></span>(<span class="dt">title =</span> <span class="st">"Ocarina of Time: 100% Speedruns in 2018"</span>,</a>
<a class="sourceLine" id="cb7-32" data-line-number="32"> <span class="dt">subtitle =</span> <span class="st">"All data from speedrun.com"</span>,</a>
<a class="sourceLine" id="cb7-33" data-line-number="33"> <span class="dt">x =</span> <span class="st">"Date of Run"</span>, <span class="dt">y =</span> <span class="st">"Time (H:M:S)"</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-34" data-line-number="34"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/hrbrthemes/topics/theme_ipsum">theme_ipsum</a></span>(<span class="dt">grid =</span> <span class="st">"X"</span>) <span class="op">+</span><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/theme">theme</a></span>(<span class="dt">axis.text.x =</span> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/element">element_text</a></span>(<span class="dt">hjust =</span> <span class="dv">0</span>))</a>
<a class="sourceLine" id="cb7-35" data-line-number="35"> }</a></code></pre></div>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb7-1" title="1"><span class="kw">library</span>(lubridate)</a>
<a class="sourceLine" id="cb7-2" title="2"></a>
<a class="sourceLine" id="cb7-3" title="3">tmp &lt;-<span class="st"> </span>oot100 <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-4" title="4"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(time_hms <span class="op">&lt;</span><span class="st"> </span>hms<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/hms/topics/hms">hms</a></span>(<span class="dt">hours =</span> <span class="dv">4</span>, <span class="dt">minutes =</span> <span class="dv">30</span>),</a>
<a class="sourceLine" id="cb7-5" title="5"> date <span class="op">&gt;=</span><span class="st"> </span><span class="kw"><a href="http://lubridate.tidyverse.org/reference/ymd.html">ymd</a></span>(<span class="st">"2018-01-01"</span>)) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-6" title="6"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(player_name, time_hms, date)</a>
<a class="sourceLine" id="cb7-7" title="7"></a>
<a class="sourceLine" id="cb7-8" title="8"><span class="kw"><a href="http://dplyr.tidyverse.org/reference/bind.html">bind_rows</a></span>(</a>
<a class="sourceLine" id="cb7-9" title="9"> tmp,</a>
<a class="sourceLine" id="cb7-10" title="10"> tmp <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-11" title="11"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(player_name) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-12" title="12"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/summarise.html">summarize</a></span>(<span class="dt">time_hms =</span> <span class="kw">min</span>(time_hms), <span class="dt">date =</span> <span class="kw"><a href="http://lubridate.tidyverse.org/reference/today.html">today</a></span>()) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-13" title="13"><span class="st"> </span>ungroup</a>
<a class="sourceLine" id="cb7-14" title="14">) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-15" title="15"><span class="st"> </span>{</a>
<a class="sourceLine" id="cb7-16" title="16"> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/ggplot">ggplot</a></span>(., <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(date, time_hms, <span class="dt">color =</span> player_name, <span class="dt">fill =</span> player_name)) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-17" title="17"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_point">geom_point</a></span>(<span class="dt">size =</span> <span class="dv">1</span>, <span class="dt">alpha =</span> <span class="fl">.75</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-18" title="18"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_path">geom_step</a></span>() <span class="op">+</span></a>
<a class="sourceLine" id="cb7-19" title="19"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggrepel/topics/geom_text_repel">geom_label_repel</a></span>(<span class="dt">data =</span> .</a>
<a class="sourceLine" id="cb7-20" title="20"> <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(player_name) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-21" title="21"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/summarise.html">summarize</a></span>(<span class="dt">y =</span> <span class="kw">min</span>(time_hms), <span class="dt">x =</span> <span class="kw">max</span>(date)),</a>
<a class="sourceLine" id="cb7-22" title="22"> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(<span class="dt">label =</span> <span class="kw">paste0</span>(player_name, <span class="st">": "</span>, y), <span class="dt">x =</span> x, <span class="dt">y =</span> y),</a>
<a class="sourceLine" id="cb7-23" title="23"> <span class="dt">color =</span> <span class="st">"black"</span>, <span class="dt">alpha =</span> <span class="fl">.75</span>, <span class="dt">show.legend =</span> F,</a>
<a class="sourceLine" id="cb7-24" title="24"> <span class="dt">hjust =</span> <span class="dv">1</span>, <span class="dt">direction =</span> <span class="st">"y"</span>, <span class="dt">nudge_x =</span> <span class="dv">60</span><span class="op">^</span><span class="dv">2</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-25" title="25"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_x_date</a></span>(<span class="dt">date_breaks =</span> <span class="st">"1 month"</span>, <span class="dt">date_labels =</span> <span class="st">"%b '%y"</span>,</a>
<a class="sourceLine" id="cb7-26" title="26"> <span class="dt">limits =</span> <span class="kw">c</span>(<span class="kw">as.Date</span>(<span class="ot">NA</span>), <span class="kw"><a href="http://lubridate.tidyverse.org/reference/today.html">today</a></span>() <span class="op">+</span><span class="st"> </span><span class="kw"><a href="http://lubridate.tidyverse.org/reference/period.html">days</a></span>(<span class="dv">45</span>))) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-27" title="27"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_y_time</a></span>(<span class="dt">breaks =</span> <span class="kw">seq</span>(<span class="dv">0</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">1</span><span class="op">/</span><span class="dv">12</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>),</a>
<a class="sourceLine" id="cb7-28" title="28"> <span class="dt">minor_breaks =</span> <span class="kw">seq</span>(<span class="dv">0</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">1</span><span class="op">/</span><span class="dv">24</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span>)) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-29" title="29"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_brewer">scale_color_brewer</a></span>(<span class="dt">palette =</span> <span class="st">"Dark2"</span>, <span class="dt">guide =</span> F) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-30" title="30"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_brewer">scale_fill_brewer</a></span>(<span class="dt">palette =</span> <span class="st">"Dark2"</span>, <span class="dt">guide =</span> F) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-31" title="31"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/labs">labs</a></span>(<span class="dt">title =</span> <span class="st">"Ocarina of Time: 100% Speedruns in 2018"</span>,</a>
<a class="sourceLine" id="cb7-32" title="32"> <span class="dt">subtitle =</span> <span class="st">"All data from speedrun.com"</span>,</a>
<a class="sourceLine" id="cb7-33" title="33"> <span class="dt">x =</span> <span class="st">"Date of Run"</span>, <span class="dt">y =</span> <span class="st">"Time (H:M:S)"</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-34" title="34"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/hrbrthemes/topics/theme_ipsum">theme_ipsum</a></span>(<span class="dt">grid =</span> <span class="st">"X"</span>) <span class="op">+</span><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/theme">theme</a></span>(<span class="dt">axis.text.x =</span> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/element">element_text</a></span>(<span class="dt">hjust =</span> <span class="dv">0</span>))</a>
<a class="sourceLine" id="cb7-35" title="35"> }</a></code></pre></div>
<p><img src="ocarina-of-time-100-_files/figure-html/oot_100_recents-1.png" width="1152"></p>
</div>
</div>


BIN
View File


BIN
View File


+ 38
- 38
docs/index.html View File

@@ -93,22 +93,22 @@
<h2 class="hasAnchor">
<a href="#installation" class="anchor"></a>Installation</h2>
<p>You can install the released version of speedrunr from GitHub with:</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" data-line-number="1">remotes<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/remotes/topics/install_github">install_github</a></span>(<span class="st">"jemus42/speedrunr"</span>)</a></code></pre></div>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" title="1">remotes<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/remotes/topics/install_github">install_github</a></span>(<span class="st">"jemus42/speedrunr"</span>)</a></code></pre></div>
</div>
<div id="example" class="section level2">
<h2 class="hasAnchor">
<a href="#example" class="anchor"></a>Example</h2>
<p>Let’s say you want to plot the times of all <em>Ocarina of TIme 100%</em> runs.<br>
Let’s get started:</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="kw">library</span>(dplyr)</a>
<a class="sourceLine" id="cb2-2" data-line-number="2"><span class="kw">library</span>(knitr)</a></code></pre></div>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb2-1" title="1"><span class="kw">library</span>(dplyr)</a>
<a class="sourceLine" id="cb2-2" title="2"><span class="kw">library</span>(knitr)</a></code></pre></div>
<div id="identifiyng-the-game-youre-looking-for" class="section level3">
<h3 class="hasAnchor">
<a href="#identifiyng-the-game-youre-looking-for" class="anchor"></a>Identifiyng the game you’re looking for</h3>
<p>You can either search for “Ocarina of Time”, or supply <code>'oot'</code>, the game’s abbreviation on speedrun.com.</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb3-1" data-line-number="1">games &lt;-<span class="st"> </span><span class="kw"><a href="reference/get_games.html">get_games</a></span>(<span class="dt">name =</span> <span class="st">"Ocarina of Time"</span>)</a>
<a class="sourceLine" id="cb3-2" data-line-number="2"></a>
<a class="sourceLine" id="cb3-3" data-line-number="3"><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>(games)</a></code></pre></div>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb3-1" title="1">games &lt;-<span class="st"> </span><span class="kw"><a href="reference/get_games.html">get_games</a></span>(<span class="dt">name =</span> <span class="st">"Ocarina of Time"</span>)</a>
<a class="sourceLine" id="cb3-2" title="2"></a>
<a class="sourceLine" id="cb3-3" title="3"><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>(games)</a></code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="left">id</th>
@@ -206,11 +206,11 @@ Let’s get started:</p>
<div id="get-the-games-categories" class="section level3">
<h3 class="hasAnchor">
<a href="#get-the-games-categories" class="anchor"></a>Get the game’s categories</h3>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb4-1" data-line-number="1">categories &lt;-<span class="st"> </span><span class="kw"><a href="reference/get_categories.html">get_categories</a></span>(<span class="dt">id =</span> <span class="st">"j1l9qz1g"</span>)</a>
<a class="sourceLine" id="cb4-2" data-line-number="2"></a>
<a class="sourceLine" id="cb4-3" data-line-number="3">categories <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb4-4" data-line-number="4"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(<span class="op">-</span>rules) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb4-5" data-line-number="5"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb4-1" title="1">categories &lt;-<span class="st"> </span><span class="kw"><a href="reference/get_categories.html">get_categories</a></span>(<span class="dt">id =</span> <span class="st">"j1l9qz1g"</span>)</a>
<a class="sourceLine" id="cb4-2" title="2"></a>
<a class="sourceLine" id="cb4-3" title="3">categories <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb4-4" title="4"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(<span class="op">-</span>rules) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb4-5" title="5"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="left">id</th>
@@ -312,16 +312,16 @@ Let’s get started:</p>
<h3 class="hasAnchor">
<a href="#get-the-runs-in-that-category" class="anchor"></a>Get the runs in that category</h3>
<p>Now we can fetch the runs. By default, 100 runs are returned, ordered by submit date in descending order, so newest runs first. This also means you will only be able to fully assess the WR progression if you make sure to get <em>all</em> the runs.</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb5-1" data-line-number="1">runs &lt;-<span class="st"> </span><span class="kw"><a href="reference/get_runs.html">get_runs</a></span>(<span class="dt">game =</span> <span class="st">"j1l9qz1g"</span>, <span class="dt">category =</span> <span class="st">"q255jw2o"</span>)</a></code></pre></div>
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb5-1" title="1">runs &lt;-<span class="st"> </span><span class="kw"><a href="reference/get_runs.html">get_runs</a></span>(<span class="dt">game =</span> <span class="st">"j1l9qz1g"</span>, <span class="dt">category =</span> <span class="st">"q255jw2o"</span>)</a></code></pre></div>
<p>And now we can basically re-create the leaderboard, but including obsoleted runs:</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb6-1" data-line-number="1"><span class="kw">library</span>(hms)</a>
<a class="sourceLine" id="cb6-2" data-line-number="2"></a>
<a class="sourceLine" id="cb6-3" data-line-number="3">runs <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-4" data-line-number="4"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/arrange.html">arrange</a></span>(time_primary) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-5" data-line-number="5"><span class="st"> </span><span class="kw">head</span>(<span class="dv">20</span>) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-6" data-line-number="6"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(submitted, time_primary, player_url) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-7" data-line-number="7"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/mutate.html">mutate</a></span>(<span class="dt">time_primary =</span> <span class="kw"><a href="http://www.rdocumentation.org/packages/hms/topics/hms">hms</a></span>(<span class="dt">seconds =</span> time_primary)) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-8" data-line-number="8"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb6-1" title="1"><span class="kw">library</span>(hms)</a>
<a class="sourceLine" id="cb6-2" title="2"></a>
<a class="sourceLine" id="cb6-3" title="3">runs <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-4" title="4"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/arrange.html">arrange</a></span>(time_primary) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-5" title="5"><span class="st"> </span><span class="kw">head</span>(<span class="dv">20</span>) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-6" title="6"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(submitted, time_primary, player_url) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-7" title="7"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/mutate.html">mutate</a></span>(<span class="dt">time_primary =</span> <span class="kw"><a href="http://www.rdocumentation.org/packages/hms/topics/hms">hms</a></span>(<span class="dt">seconds =</span> time_primary)) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-8" title="8"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="left">submitted</th>
@@ -436,9 +436,9 @@ Let’s get started:</p>
<h3 class="hasAnchor">
<a href="#more-data" class="anchor"></a>More data</h3>
<p>Wanna resolve those platforms? Just join with this table:</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb7-1" data-line-number="1"><span class="kw"><a href="reference/get_platforms.html">get_platforms</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-2" data-line-number="2"><span class="st"> </span><span class="kw">head</span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-3" data-line-number="3"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb7-1" title="1"><span class="kw"><a href="reference/get_platforms.html">get_platforms</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-2" title="2"><span class="st"> </span><span class="kw">head</span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-3" title="3"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="left">id</th>
@@ -479,8 +479,8 @@ Let’s get started:</p>
</tbody>
</table>
<p>Same can be done with regions:</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb8-1" data-line-number="1"><span class="kw"><a href="reference/get_regions.html">get_regions</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb8-2" data-line-number="2"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb8-1" title="1"><span class="kw"><a href="reference/get_regions.html">get_regions</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb8-2" title="2"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="left">id</th>
@@ -521,12 +521,12 @@ Let’s get started:</p>
<code><a href="reference/add_miscdata.html">add_players()</a></code>, which only makes on API call per unique player.</li>
</ul>
<p>All of them work in the following way:</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb9-1" data-line-number="1">runs <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb9-2" data-line-number="2"><span class="st"> </span><span class="kw"><a href="reference/add_miscdata.html">add_regions</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb9-3" data-line-number="3"><span class="st"> </span><span class="kw"><a href="reference/add_miscdata.html">add_platforms</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb9-4" data-line-number="4"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(time_primary, system_region, system_platform) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb9-5" data-line-number="5"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/sample.html">sample_n</a></span>(<span class="dv">5</span>) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb9-6" data-line-number="6"><span class="st"> </span>knitr<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<div class="sourceCode" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb9-1" title="1">runs <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb9-2" title="2"><span class="st"> </span><span class="kw"><a href="reference/add_miscdata.html">add_regions</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb9-3" title="3"><span class="st"> </span><span class="kw"><a href="reference/add_miscdata.html">add_platforms</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb9-4" title="4"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(time_primary, system_region, system_platform) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb9-5" title="5"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/sample.html">sample_n</a></span>(<span class="dv">5</span>) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb9-6" title="6"><span class="st"> </span>knitr<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="right">time_primary</th>
@@ -535,27 +535,27 @@ Let’s get started:</p>
</tr></thead>
<tbody>
<tr class="odd">
<td align="right">15748</td>
<td align="right">18752</td>
<td align="left">JPN / NTSC</td>
<td align="left">Wii Virtual Console</td>
<td align="left">Nintendo 64</td>
</tr>
<tr class="even">
<td align="right">15756</td>
<td align="right">17841</td>
<td align="left">JPN / NTSC</td>
<td align="left">Wii Virtual Console</td>
</tr>
<tr class="odd">
<td align="right">25479</td>
<td align="right">17629</td>
<td align="left">JPN / NTSC</td>
<td align="left">Wii Virtual Console</td>
<td align="left">Nintendo 64</td>
</tr>
<tr class="even">
<td align="right">15350</td>
<td align="right">15317</td>
<td align="left">JPN / NTSC</td>
<td align="left">Wii Virtual Console</td>
</tr>
<tr class="odd">
<td align="right">15919</td>
<td align="right">24385</td>
<td align="left">JPN / NTSC</td>
<td align="left">Wii Virtual Console</td>
</tr>


+ 2
- 2
docs/news/index.html View File

@@ -157,7 +157,7 @@
<li>
<code>get_categories</code> now does not fail anymore if one or more categories has no rules.</li>
<li>
<code>get_runs</code> should properly handle pagination (i.e. <code>max</code> &gt; 200) now.</li>
<code>get_runs</code> should properly handle pagination (i.e. <code>max</code> &gt; 200) now.</li>
</ul>
</li>
</ul>
@@ -178,7 +178,7 @@
<li>
<code>get_runs</code>: Get runs. Needs <code>game</code> and <code>category</code> to be useful, hence the previous functions.</li>
<li>
<code>get_variables</code>: To resolve category/game-specific variables, e.g. <code>150cc</code> in Mario Kart.</li>
<code>get_variables</code>: To resolve category/game-specific variables, e.g. <code>150cc</code> in Mario Kart.</li>
<li>
<code>get_regions</code>: Get all the regions.</li>
<li>


+ 1
- 1
docs/pkgdown.yml View File

@@ -1,4 +1,4 @@
pandoc: 2.3.1
pandoc: '2.4'
pkgdown: 1.1.0
pkgdown_sha: ~
articles:


Loading…
Cancel
Save