Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Jan 10, 2024
1 parent 888fbb0 commit 7a433e8
Show file tree
Hide file tree
Showing 32 changed files with 7,082 additions and 1,283 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9d128140
ac8bfaaf
30 changes: 15 additions & 15 deletions blogs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,14 @@ <h1 class="title">Data Science Blog</h1>

<div class="quarto-listing quarto-listing-container-default" id="listing-listing">
<div class="list quarto-listing-default">
<div class="quarto-post image-right" data-index="0" data-categories="git,tutorial" data-listing-date-sort="1682467200000" data-listing-file-modified-sort="1697492370818" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2">
<div class="quarto-post image-right" data-index="0" data-categories="git,tutorial" data-listing-date-sort="1682467200000" data-listing-file-modified-sort="1704892160289" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2">
<div class="thumbnail">
<p><a href="../blogs/posts/2023-04-26_alternative_remotes.html"> <div class="listing-item-img-placeholder card-img-top" >&nbsp;</div> </a></p>
<p><a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html"> <div class="listing-item-img-placeholder card-img-top" >&nbsp;</div> </a></p>
</div>
<div class="body">
<a href="../blogs/posts/2023-04-26_alternative_remotes.html">
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html">
<h3 class="no-anchor listing-title">
Alternative remote repositories
Reinstalling R Packages
</h3>
<div class="listing-subtitle">

Expand All @@ -223,14 +223,14 @@ <h3 class="no-anchor listing-title">
tutorial
</div>
</div>
<a href="../blogs/posts/2023-04-26_alternative_remotes.html">
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html">
<div class="listing-description">
It’s great when someone send’s you a
R 4.3.0 was released last week. Anytime you update R you will probably find yourself in the position
</div>
</a>
</div>
<div class="metadata">
<a href="../blogs/posts/2023-04-26_alternative_remotes.html">
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html">
<div class="listing-date">
Apr 26, 2023
</div>
Expand All @@ -240,14 +240,14 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="1" data-categories="git,tutorial" data-listing-date-sort="1682467200000" data-listing-file-modified-sort="1697492370818" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2">
<div class="quarto-post image-right" data-index="1" data-categories="git,tutorial" data-listing-date-sort="1682467200000" data-listing-file-modified-sort="1704892160289" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2">
<div class="thumbnail">
<p><a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html"> <div class="listing-item-img-placeholder card-img-top" >&nbsp;</div> </a></p>
<p><a href="../blogs/posts/2023-04-26_alternative_remotes.html"> <div class="listing-item-img-placeholder card-img-top" >&nbsp;</div> </a></p>
</div>
<div class="body">
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html">
<a href="../blogs/posts/2023-04-26_alternative_remotes.html">
<h3 class="no-anchor listing-title">
Reinstalling R Packages
Alternative remote repositories
</h3>
<div class="listing-subtitle">

Expand All @@ -261,14 +261,14 @@ <h3 class="no-anchor listing-title">
tutorial
</div>
</div>
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html">
<a href="../blogs/posts/2023-04-26_alternative_remotes.html">
<div class="listing-description">
R 4.3.0 was released last week. Anytime you update R you will probably find yourself in the position
It’s great when someone send’s you a
</div>
</a>
</div>
<div class="metadata">
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html">
<a href="../blogs/posts/2023-04-26_alternative_remotes.html">
<div class="listing-date">
Apr 26, 2023
</div>
Expand All @@ -278,7 +278,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="2" data-categories="git,tutorial" data-listing-date-sort="1679616000000" data-listing-file-modified-sort="1697492370818" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="5">
<div class="quarto-post image-right" data-index="2" data-categories="git,tutorial" data-listing-date-sort="1679616000000" data-listing-file-modified-sort="1704892160289" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="5">
<div class="thumbnail">
<p><a href="../blogs/posts/2023-03-24_hotfix-with-git.html"> <p class="card-img-top"><img src="posts/2023-03-24_hotfix-with-git_files/figure-html/unnamed-chunk-1-1.png" class="thumbnail-image card-img"/></p> </a></p>
</div>
Expand Down
58 changes: 29 additions & 29 deletions blogs/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,35 @@
<description>Blogs from the Data Science Team at The Strategy Unit</description>
<generator>quarto-1.3.450</generator>
<lastBuildDate>Wed, 26 Apr 2023 00:00:00 GMT</lastBuildDate>
<item>
<title>Reinstalling R Packages</title>
<dc:creator>Tom Jemmett</dc:creator>
<link>https://the-strategy-unit.github.io/data_science/blogs/posts/2023-04-26-reinstalling-r-packages.html</link>
<description><![CDATA[
<p><a href="https://stat.ethz.ch/pipermail/r-announce/2023/000691.html">R 4.3.0 was released</a> last week. Anytime you update R you will probably find yourself in the position where no packages are installed. This is by design - the packages that you have installed may need to be updated and recompiled to work under new versions of R.</p>
<p>You may find yourself wanting to have all of the packages that you previously used, so one approach that some people take is to copy the previous library folder to the new versions folder. This isn’t a good idea and could potentially break your R install.</p>
<p>Another approach would be to export the list of packages in R before updating and then using that list after you have updated R. This can cause issues though if you install from places other than CRAN, e.g.&nbsp;bioconductor, or from GitHub.</p>
<p>Some of these approaches are discussed on the <a href="https://community.rstudio.com/t/reinstalling-packages-on-new-version-of-r/7670/4">RStudio Community Forum</a>. But I prefer an approach of having a “spring clean”, instead only installing the packages that I know that I need.</p>
<p>I maintain a <a href="https://gist.github.com/tomjemmett/c105d3e0fbea7558088f68c65e68e1ed/">list of the packages that I used</a> as a gist. Using this, I can then simply run this script on any new R install. In fact, if you click the “raw” button on the gist, and copy that url, you can simply run</p>
<div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">source</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"https://gist.githubusercontent.com/tomjemmett/c105d3e0fbea7558088f68c65e68e1ed/raw/a1db4b5fa0d24562d16d3f57fe8c25fb0d8aa53e/setup.R"</span>)</span></code></pre></div>
<p>Generally, sourcing a url is a bad idea - the reason for this is if it’s not a link that you control, then someone could update the contents and run arbritary code on your machine. In this case, I’m happy to run this as it’s my own gist, but you should be mindful if running it yourself!</p>
<p>If you look at the script I first install a number of packages from CRAN, then I install packages that only exist on GitHub.</p>
]]></description>
<category>git</category>
<category>tutorial</category>
<guid>https://the-strategy-unit.github.io/data_science/blogs/posts/2023-04-26-reinstalling-r-packages.html</guid>
<pubDate>Wed, 26 Apr 2023 00:00:00 GMT</pubDate>
</item>
<item>
<title>Alternative remote repositories</title>
<dc:creator>Tom Jemmett</dc:creator>
Expand Down Expand Up @@ -57,35 +86,6 @@ $ git remote remove friend</code></pre>
<guid>https://the-strategy-unit.github.io/data_science/blogs/posts/2023-04-26_alternative_remotes.html</guid>
<pubDate>Wed, 26 Apr 2023 00:00:00 GMT</pubDate>
</item>
<item>
<title>Reinstalling R Packages</title>
<dc:creator>Tom Jemmett</dc:creator>
<link>https://the-strategy-unit.github.io/data_science/blogs/posts/2023-04-26-reinstalling-r-packages.html</link>
<description><![CDATA[
<p><a href="https://stat.ethz.ch/pipermail/r-announce/2023/000691.html">R 4.3.0 was released</a> last week. Anytime you update R you will probably find yourself in the position where no packages are installed. This is by design - the packages that you have installed may need to be updated and recompiled to work under new versions of R.</p>
<p>You may find yourself wanting to have all of the packages that you previously used, so one approach that some people take is to copy the previous library folder to the new versions folder. This isn’t a good idea and could potentially break your R install.</p>
<p>Another approach would be to export the list of packages in R before updating and then using that list after you have updated R. This can cause issues though if you install from places other than CRAN, e.g.&nbsp;bioconductor, or from GitHub.</p>
<p>Some of these approaches are discussed on the <a href="https://community.rstudio.com/t/reinstalling-packages-on-new-version-of-r/7670/4">RStudio Community Forum</a>. But I prefer an approach of having a “spring clean”, instead only installing the packages that I know that I need.</p>
<p>I maintain a <a href="https://gist.github.com/tomjemmett/c105d3e0fbea7558088f68c65e68e1ed/">list of the packages that I used</a> as a gist. Using this, I can then simply run this script on any new R install. In fact, if you click the “raw” button on the gist, and copy that url, you can simply run</p>
<div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">source</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"https://gist.githubusercontent.com/tomjemmett/c105d3e0fbea7558088f68c65e68e1ed/raw/a1db4b5fa0d24562d16d3f57fe8c25fb0d8aa53e/setup.R"</span>)</span></code></pre></div>
<p>Generally, sourcing a url is a bad idea - the reason for this is if it’s not a link that you control, then someone could update the contents and run arbritary code on your machine. In this case, I’m happy to run this as it’s my own gist, but you should be mindful if running it yourself!</p>
<p>If you look at the script I first install a number of packages from CRAN, then I install packages that only exist on GitHub.</p>
]]></description>
<category>git</category>
<category>tutorial</category>
<guid>https://the-strategy-unit.github.io/data_science/blogs/posts/2023-04-26-reinstalling-r-packages.html</guid>
<pubDate>Wed, 26 Apr 2023 00:00:00 GMT</pubDate>
</item>
<item>
<title>Creating a hotfix with git</title>
<dc:creator>Tom Jemmett</dc:creator>
Expand Down
2 changes: 1 addition & 1 deletion listings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
{
"listing": "/blogs/index.html",
"items": [
"/blogs/posts/2023-04-26_alternative_remotes.html",
"/blogs/posts/2023-04-26-reinstalling-r-packages.html",
"/blogs/posts/2023-04-26_alternative_remotes.html",
"/blogs/posts/2023-03-24_hotfix-with-git.html"
]
}
Expand Down
8 changes: 4 additions & 4 deletions presentations/2023-08-23_nhs-r_unit-testing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ <h2>… and create our first test</h2>
<span id="cb10-13"><a href="#cb10-13"></a> )</span>
<span id="cb10-14"><a href="#cb10-14"></a>})</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>Test passed 😀</code></pre>
<pre><code>Test passed 🎊</code></pre>
</div>
</div>
</section>
Expand All @@ -755,7 +755,7 @@ <h2>other <code>expect_*()</code> functions…</h2>
<span id="cb12-13"><a href="#cb12-13"></a> )</span>
<span id="cb12-14"><a href="#cb12-14"></a>})</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>Test passed 🥳</code></pre>
<pre><code>Test passed 🎊</code></pre>
</div>
</div>
<div class="footer">
Expand Down Expand Up @@ -932,7 +932,7 @@ <h2>Testing edge cases</h2>
<span id="cb23-5"><a href="#cb23-5"></a> <span class="fu">expect_error</span>(<span class="fu">my_function</span>(<span class="dv">1</span><span class="sc">:</span><span class="dv">2</span>, <span class="dv">4</span>))</span>
<span id="cb23-6"><a href="#cb23-6"></a>})</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>Test passed 🌈</code></pre>
<pre><code>Test passed 😸</code></pre>
</div>
</div>
</div>
Expand Down Expand Up @@ -973,7 +973,7 @@ <h2>Another (simple) example</h2>
<span id="cb27-2"><a href="#cb27-2"></a> <span class="fu">expect_equal</span>(<span class="fu">my_new_function</span>(<span class="dv">4</span>, <span class="dv">3</span>), <span class="st">"x"</span>)</span>
<span id="cb27-3"><a href="#cb27-3"></a>})</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>Test passed 🥳</code></pre>
<pre><code>Test passed 😀</code></pre>
</div>
<div class="sourceCode cell-code" id="cb29"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb29-1"><a href="#cb29-1"></a><span class="fu">test_that</span>(<span class="st">"it returns 'y' if y is bigger than x"</span>, {</span>
<span id="cb29-2"><a href="#cb29-2"></a> <span class="fu">expect_equal</span>(<span class="fu">my_new_function</span>(<span class="dv">3</span>, <span class="dv">4</span>), <span class="st">"y"</span>)</span>
Expand Down
26 changes: 13 additions & 13 deletions presentations/2023-08-24_coffee-and-coding_geospatial/index.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.
Original file line number Diff line number Diff line change
Expand Up @@ -1358,12 +1358,12 @@ <h2>in R - flows</h2>
# Groups: date_admit [6]
date_admit n
&lt;date&gt; &lt;int&gt;
1 2022-01-01 22
2 2022-01-02 36
3 2022-01-03 26
4 2022-01-04 18
5 2022-01-05 20
6 2022-01-06 25</code></pre>
1 2022-01-01 28
2 2022-01-02 25
3 2022-01-03 38
4 2022-01-04 24
5 2022-01-05 15
6 2022-01-06 20</code></pre>
</div>
</div>
</div>
Expand Down Expand Up @@ -1492,12 +1492,12 @@ <h2>Longer Time Periods - flows</h2>
<pre><code># A tibble: 6 × 2
week_start n
&lt;date&gt; &lt;int&gt;
1 2021-12-27 58
2 2022-01-03 177
3 2022-01-10 207
4 2022-01-17 196
5 2022-01-24 200
6 2022-01-31 175</code></pre>
1 2021-12-27 53
2 2022-01-03 174
3 2022-01-10 176
4 2022-01-17 204
5 2022-01-24 184
6 2022-01-31 207</code></pre>
</div>
</div>
<aside class="notes">
Expand Down
Loading

0 comments on commit 7a433e8

Please sign in to comment.