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 Oct 9, 2024
1 parent 77c9219 commit c212da6
Show file tree
Hide file tree
Showing 11 changed files with 1,620 additions and 1,595 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b0ce7008
8c34a58a
44 changes: 22 additions & 22 deletions blogs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ <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="purrr,R,tutorial" data-listing-date-sort="1723075200000" data-listing-file-modified-sort="1728461492880" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="6" data-listing-word-count-sort="1147">
<div class="quarto-post image-right" data-index="0" data-categories="purrr,R,tutorial" data-listing-date-sort="1723075200000" data-listing-file-modified-sort="1728472168660" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="6" data-listing-word-count-sort="1147">
<div class="thumbnail">
<p><a href="../blogs/posts/2024-08-08-map-and-nest/index.html" class="no-external"></a></p><a href="../blogs/posts/2024-08-08-map-and-nest/index.html" class="no-external">
<p class="card-img-top"><img src="posts/2024-08-08-map-and-nest/example_bar_chart.png" class="thumbnail-image card-img"/></p>
Expand Down Expand Up @@ -277,7 +277,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="1" data-categories="learning,R,Python" data-listing-date-sort="1716336000000" data-listing-file-modified-sort="1728461492879" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="5" data-listing-word-count-sort="858">
<div class="quarto-post image-right" data-index="1" data-categories="learning,R,Python" data-listing-date-sort="1716336000000" data-listing-file-modified-sort="1728472168660" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="5" data-listing-word-count-sort="858">
<div class="thumbnail">
<p><a href="../blogs/posts/2024-05-22-storing-data-safely/index.html" class="no-external"></a></p><a href="../blogs/posts/2024-05-22-storing-data-safely/index.html" class="no-external">
<div class="listing-item-img-placeholder card-img-top" >&nbsp;</div>
Expand Down Expand Up @@ -316,7 +316,7 @@ <h3 class="no-anchor listing-title">

</div>
</div>
<div class="quarto-post image-right" data-index="2" data-categories="learning" data-listing-date-sort="1715558400000" data-listing-file-modified-sort="1728461492879" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2" data-listing-word-count-sort="271">
<div class="quarto-post image-right" data-index="2" data-categories="learning" data-listing-date-sort="1715558400000" data-listing-file-modified-sort="1728472168660" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2" data-listing-word-count-sort="271">
<div class="thumbnail">
<p><a href="../blogs/posts/2024-05-13_one-year-coffee-code.html" class="no-external"></a></p><a href="../blogs/posts/2024-05-13_one-year-coffee-code.html" class="no-external">
<div class="listing-item-img-placeholder card-img-top" >&nbsp;</div>
Expand Down Expand Up @@ -349,7 +349,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="3" data-categories="learning,R" data-listing-date-sort="1710979200000" data-listing-file-modified-sort="1728461492877" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="10" data-listing-word-count-sort="1833">
<div class="quarto-post image-right" data-index="3" data-categories="learning,R" data-listing-date-sort="1710979200000" data-listing-file-modified-sort="1728472168656" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="10" data-listing-word-count-sort="1833">
<div class="thumbnail">
<p><a href="../blogs/posts/2023-03-21-rstudio-tips/index.html" class="no-external"></a></p><a href="../blogs/posts/2023-03-21-rstudio-tips/index.html" class="no-external">
<p class="card-img-top"><img src="posts/2023-03-21-rstudio-tips/command-palette.png" class="thumbnail-image card-img"/></p>
Expand Down Expand Up @@ -385,7 +385,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="4" data-categories="learning,tutorial,visualisation,R" data-listing-date-sort="1709078400000" data-listing-file-modified-sort="1728461492879" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="22" data-listing-word-count-sort="4306">
<div class="quarto-post image-right" data-index="4" data-categories="learning,tutorial,visualisation,R" data-listing-date-sort="1709078400000" data-listing-file-modified-sort="1728472168660" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="22" data-listing-word-count-sort="4306">
<div class="thumbnail">
<p><a href="../blogs/posts/2024-02-28_sankey_plot.html" class="no-external"></a></p><a href="../blogs/posts/2024-02-28_sankey_plot.html" class="no-external">
<div class="listing-item-img-placeholder card-img-top" >&nbsp;</div>
Expand Down Expand Up @@ -427,7 +427,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="5" data-categories="learning" data-listing-date-sort="1705449600000" data-listing-file-modified-sort="1728461492879" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="5" data-listing-word-count-sort="920">
<div class="quarto-post image-right" data-index="5" data-categories="learning" data-listing-date-sort="1705449600000" data-listing-file-modified-sort="1728472168660" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="5" data-listing-word-count-sort="920">
<div class="thumbnail">
<p><a href="../blogs/posts/2024-01-17_nearest_neighbour.html" class="no-external"></a></p><a href="../blogs/posts/2024-01-17_nearest_neighbour.html" class="no-external">
<div class="listing-item-img-placeholder card-img-top" >&nbsp;</div>
Expand Down Expand Up @@ -460,7 +460,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="6" data-categories="learning" data-listing-date-sort="1704844800000" data-listing-file-modified-sort="1728461492879" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2" data-listing-word-count-sort="337">
<div class="quarto-post image-right" data-index="6" data-categories="learning" data-listing-date-sort="1704844800000" data-listing-file-modified-sort="1728472168660" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2" data-listing-word-count-sort="337">
<div class="thumbnail">
<p><a href="../blogs/posts/2024-01-10-advent-of-code-and-test-driven-development.html" class="no-external"></a></p><a href="../blogs/posts/2024-01-10-advent-of-code-and-test-driven-development.html" class="no-external">
<div class="listing-item-img-placeholder card-img-top" >&nbsp;</div>
Expand Down Expand Up @@ -493,18 +493,18 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="7" data-categories="git,tutorial" data-listing-date-sort="1682467200000" data-listing-file-modified-sort="1728461492879" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2" data-listing-word-count-sort="290">
<div class="quarto-post image-right" data-index="7" data-categories="git,tutorial" data-listing-date-sort="1682467200000" data-listing-file-modified-sort="1728472168660" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2" data-listing-word-count-sort="371">
<div class="thumbnail">
<p><a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external"></a></p><a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external">
<p><a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external"></a></p><a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external">
<div class="listing-item-img-placeholder card-img-top" >&nbsp;</div>
</a><p><a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external"></a></p>
</a><p><a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external"></a></p>
</div>
<div class="body">
<h3 class="no-anchor listing-title">
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external">Reinstalling R Packages</a>
<a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external">Alternative remote repositories</a>
</h3>
<div class="listing-subtitle">
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external"></a>
<a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external"></a>
</div>
<div class="listing-categories">
<div class="listing-category" onclick="window.quartoListingCategory('git'); return false;">
Expand All @@ -515,11 +515,11 @@ <h3 class="no-anchor listing-title">
</div>
</div>
<div class="listing-description">
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external">R 4.3.0 was released 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</a>
<a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external">It’s great when someone send’s you a pull request on GitHub to fix bugs or add new features to your project, but you probably always want to check the other persons work in</a>
</div>
</div>
<div class="metadata">
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external">
<a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external">
<div class="listing-date">
Apr 26, 2023
</div>
Expand All @@ -529,18 +529,18 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="8" data-categories="git,tutorial" data-listing-date-sort="1682467200000" data-listing-file-modified-sort="1728461492879" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2" data-listing-word-count-sort="371">
<div class="quarto-post image-right" data-index="8" data-categories="git,tutorial" data-listing-date-sort="1682467200000" data-listing-file-modified-sort="1728472168660" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2" data-listing-word-count-sort="290">
<div class="thumbnail">
<p><a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external"></a></p><a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external">
<p><a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external"></a></p><a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external">
<div class="listing-item-img-placeholder card-img-top" >&nbsp;</div>
</a><p><a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external"></a></p>
</a><p><a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external"></a></p>
</div>
<div class="body">
<h3 class="no-anchor listing-title">
<a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external">Alternative remote repositories</a>
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external">Reinstalling R Packages</a>
</h3>
<div class="listing-subtitle">
<a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external"></a>
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external"></a>
</div>
<div class="listing-categories">
<div class="listing-category" onclick="window.quartoListingCategory('git'); return false;">
Expand All @@ -551,11 +551,11 @@ <h3 class="no-anchor listing-title">
</div>
</div>
<div class="listing-description">
<a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external">It’s great when someone send’s you a pull request on GitHub to fix bugs or add new features to your project, but you probably always want to check the other persons work in</a>
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external">R 4.3.0 was released 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</a>
</div>
</div>
<div class="metadata">
<a href="../blogs/posts/2023-04-26_alternative_remotes.html" class="no-external">
<a href="../blogs/posts/2023-04-26-reinstalling-r-packages.html" class="no-external">
<div class="listing-date">
Apr 26, 2023
</div>
Expand All @@ -565,7 +565,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="9" data-categories="git,tutorial" data-listing-date-sort="1679616000000" data-listing-file-modified-sort="1728461492879" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="5" data-listing-word-count-sort="885">
<div class="quarto-post image-right" data-index="9" data-categories="git,tutorial" data-listing-date-sort="1679616000000" data-listing-file-modified-sort="1728472168660" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="5" data-listing-word-count-sort="885">
<div class="thumbnail">
<p><a href="../blogs/posts/2023-03-24_hotfix-with-git.html" class="no-external"></a></p><a href="../blogs/posts/2023-03-24_hotfix-with-git.html" class="no-external">
<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>
Expand Down
60 changes: 30 additions & 30 deletions blogs/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5929,36 +5929,6 @@ font-style: inherit;">select</span>(practice_code,need_to_use) </span></code></p
<guid>https://the-strategy-unit.github.io/data_science/blogs/posts/2024-01-10-advent-of-code-and-test-driven-development.html</guid>
<pubDate>Wed, 10 Jan 2024 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>Alternative remote repositories</title>
<dc:creator>Tom Jemmett</dc:creator>
Expand Down Expand Up @@ -6006,6 +5976,36 @@ $ 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
Loading

0 comments on commit c212da6

Please sign in to comment.