<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
  <title>Day 01 on GAMbler</title>
  <link>https://ecogambler.netlify.app/collection/day01/</link>
  <description>Recent content in Day 01 on GAMbler</description>
  <generator>Hugo</generator>
  <language>en</language>
<copyright>© Nicholas J Clark (2024)</copyright>
<lastBuildDate>Sat, 02 Jan 2021 00:00:00 +0000</lastBuildDate>
<atom:link href="https://ecogambler.netlify.app/collection/day01/index.xml" rel="self" type="application/rss+xml" />
<item>
  <title>A GitHub profile</title>
  <link>https://ecogambler.netlify.app/collection/day01/01-github/</link>
  <pubDate>Fri, 01 Jan 2021 00:00:00 +0000</pubDate>
<guid>https://ecogambler.netlify.app/collection/day01/01-github/</guid>
  <description>&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;profile&#34;&gt;Profile&#xA;  &lt;a href=&#34;#profile&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&#xA;&lt;a href=&#34;https://docs.github.com/en/github/setting-up-and-managing-your-github-profile/personalizing-your-profile&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://docs.github.com/en/github/setting-up-and-managing-your-github-profile/personalizing-your-profile&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;pin-projects-to-profile&#34;&gt;Pin projects to profile&#xA;  &lt;a href=&#34;#pin-projects-to-profile&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&#xA;&lt;a href=&#34;https://docs.github.com/en/github/setting-up-and-managing-your-github-profile/pinning-items-to-your-profile&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://docs.github.com/en/github/setting-up-and-managing-your-github-profile/pinning-items-to-your-profile&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;profile-readme&#34;&gt;Profile README&#xA;  &lt;a href=&#34;#profile-readme&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;This is new! Let&amp;rsquo;s do it:&lt;/p&gt;&#xA;&lt;p&gt;&#xA;&lt;a href=&#34;https://docs.github.com/en/github/setting-up-and-managing-your-github-profile/managing-your-profile-readme&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://docs.github.com/en/github/setting-up-and-managing-your-github-profile/managing-your-profile-readme&lt;/a&gt;&lt;/p&gt;&#xA;</description>
  </item>
<item>
  <title>A postcard</title>
  <link>https://ecogambler.netlify.app/collection/day01/02-postcards/</link>
  <pubDate>Sat, 02 Jan 2021 00:00:00 +0000</pubDate>
<guid>https://ecogambler.netlify.app/collection/day01/02-postcards/</guid>
  <description>&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;pre-requisites&#34;&gt;Pre-requisites&#xA;  &lt;a href=&#34;#pre-requisites&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;First, make sure you have the latest version of the postcards package installed from CRAN:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;install.packages(&amp;#34;postcards&amp;#34;)&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Restart your R session. If you use RStudio, use the menu item &lt;em&gt;Session &amp;gt; Restart R&lt;/em&gt; or the associated keyboard shortcut:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;kbd&gt;Ctrl + Shift + F10&lt;/kbd&gt; (Windows and Linux) or&lt;/li&gt;&#xA;&lt;li&gt;&lt;kbd&gt;Command + Shift + F10&lt;kbd&gt; (Mac OS).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;packageVersion(&amp;#34;postcards&amp;#34;)&#xA;[1] ‘0.2.0’&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;create-github-repo&#34;&gt;Create GitHub repo&#xA;  &lt;a href=&#34;#create-github-repo&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Online.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;clone-github-repo&#34;&gt;Clone GitHub repo&#xA;  &lt;a href=&#34;#clone-github-repo&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;usethis::create_from_github(&amp;#34;https://github.com/apreshill/global-postcard.git&amp;#34;)&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&amp;#x2728; Commit &amp;amp; Push! &amp;#x2728;&lt;/p&gt;&#xA;&lt;p&gt;You should be committing these files:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;*.Rproj&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;.gitignore&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;templates&#34;&gt;Create a postcard&#xA;  &lt;a href=&#34;#templates&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Inside your current postcards project, use the R console:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;library(postcards)&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then you could run (wait- don&amp;rsquo;t do this yet!):&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;create_postcard()&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;But you could also pick one of four templates:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;quot;jolla&amp;quot;&lt;/code&gt; (&#xA;&lt;a href=&#34;https://seankross.com/postcards-templates/jolla/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://seankross.com/postcards-templates/jolla/&lt;/a&gt;) [the default]&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;quot;jolla-blue&amp;quot;&lt;/code&gt; (&#xA;&lt;a href=&#34;https://seankross.com/postcards-templates/jolla-blue/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://seankross.com/postcards-templates/jolla-blue/&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;quot;trestles&amp;quot;&lt;/code&gt; (&#xA;&lt;a href=&#34;https://seankross.com/postcards-templates/trestles/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://seankross.com/postcards-templates/trestles/&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;quot;onofre&amp;quot;&lt;/code&gt; (&#xA;&lt;a href=&#34;https://seankross.com/postcards-templates/onofre/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://seankross.com/postcards-templates/onofre/&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;create_postcard(template = &amp;#34;jolla&amp;#34;) #default&#xA;create_postcard(template = &amp;#34;jolla-blue&amp;#34;)&#xA;create_postcard(template = &amp;#34;trestles&amp;#34;)&#xA;create_postcard(template = &amp;#34;onofre&amp;#34;)&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;aside&gt;&#xA;Want to know more? Under the hood, these are R Markdown templates, which you can include in a package.&#xA;&lt;/aside&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;anatomy-of-a-postcard&#34;&gt;Anatomy of a postcard&#xA;  &lt;a href=&#34;#anatomy-of-a-postcard&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;YAML, body, name is index- this is special&lt;/p&gt;&#xA;&lt;p&gt;&amp;#x2728; Commit &amp;amp; Push! &amp;#x2728;&lt;/p&gt;&#xA;&lt;p&gt;You should be committing these files:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;index.Rmd&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;*.jpg&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;But! There is no &lt;code&gt;.html&lt;/code&gt; file (yet&amp;hellip;)&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;knit-the-postcard&#34;&gt;Knit the postcard&#xA;  &lt;a href=&#34;#knit-the-postcard&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Knit button or&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;rmarkdown::render(&amp;#34;index.Rmd&amp;#34;)&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;What is new in your Git pane?&lt;/p&gt;&#xA;&lt;p&gt;&amp;#x2728; Commit &amp;amp; Push! &amp;#x2728;&lt;/p&gt;&#xA;&lt;p&gt;You should be committing this files:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;index.html&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;(You may get a warning in RStudio IDE that this file is too big- go right ahead)&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;publish-a-postcard&#34;&gt;Publish a postcard&#xA;  &lt;a href=&#34;#publish-a-postcard&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Easy:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Push, publish to GitHub pages&#xA;&#xA;&lt;a href=&#34;https://docs.github.com/en/github/working-with-github-pages/creating-a-github-pages-site#creating-your-site&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://docs.github.com/en/github/working-with-github-pages/creating-a-github-pages-site#creating-your-site&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Medium:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;gt; use_github_pages(branch = &amp;#34;main&amp;#34;, path = &amp;#34;/&amp;#34;)&#xA;✓ Setting active project to &amp;#39;/Users/alison/rscratch/global-postcard&amp;#39;&#xA;✓ Activating GitHub Pages for &amp;#39;apreshill/global-postcard&amp;#39;&#xA;✓ GitHub Pages is publishing from:&#xA;● URL: &amp;#39;https://apreshill.github.io/global-postcard/&amp;#39;&#xA;● Branch: &amp;#39;main&amp;#39;&#xA;● Path: &amp;#39;/&amp;#39;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;share-your-postcard&#34;&gt;Share your postcard!&#xA;  &lt;a href=&#34;#share-your-postcard&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Add it to your repository details&lt;/p&gt;&#xA;</description>
  </item>
<item>
  <title>A distill site</title>
  <link>https://ecogambler.netlify.app/collection/day01/03-distill/</link>
  <pubDate>Sat, 02 Jan 2021 00:00:00 +0000</pubDate>
<guid>https://ecogambler.netlify.app/collection/day01/03-distill/</guid>
  <description>&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;pre-requisites&#34;&gt;Pre-requisites&#xA;  &lt;a href=&#34;#pre-requisites&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;First, make sure you have the latest version of the distill package installed from CRAN:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;install.packages(&amp;quot;distill&amp;quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Restart your R session. If you use RStudio, use the menu item &lt;em&gt;Session &amp;gt; Restart R&lt;/em&gt; or the associated keyboard shortcut:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;kbd&gt;Ctrl + Shift + F10&lt;/kbd&gt; (Windows and Linux) or&lt;/li&gt;&#xA;&lt;li&gt;&lt;kbd&gt;Command + Shift + F10&lt;/kbd&gt; (Mac OS).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-r&#34; data-lang=&#34;r&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#900;font-weight:bold&#34;&gt;packageVersion&lt;/span&gt;(&lt;span style=&#34;color:#d14&#34;&gt;&amp;#34;distill&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#998;font-style:italic&#34;&gt;# [1] ‘1.2’ &lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;create-github-repo&#34;&gt;Create GitHub repo&#xA;  &lt;a href=&#34;#create-github-repo&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Online.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;clone-github-repo&#34;&gt;Clone GitHub repo&#xA;  &lt;a href=&#34;#clone-github-repo&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;usethis::create_from_github(&amp;quot;https://github.com/apreshill/global-distill.git&amp;quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&amp;#x2728; Commit &amp;amp; Push! &amp;#x2728;&lt;/p&gt;&#xA;&lt;p&gt;You should be committing these files:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;*.Rproj&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;.gitignore&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;create-a-new-distill-site&#34;&gt;Create a new distill site&#xA;  &lt;a href=&#34;#create-a-new-distill-site&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Inside your current distill project, use the R console:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;library(distill)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s start with a simple website:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;create_website(dir = &amp;quot;.&amp;quot;, title = &amp;quot;global-distill&amp;quot;, gh_pages = TRUE)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, let&amp;rsquo;s commit all these new files and push to GitHub.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;build-site&#34;&gt;Build site&#xA;  &lt;a href=&#34;#build-site&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Please &lt;em&gt;close&lt;/em&gt; the RStudio IDE and re-open it. Look in your Git pane, you should see a single file has changed:&lt;/p&gt;&#xA;&lt;center&gt;&#xA;&lt;img src=&#34;rproj-git.png&#34; width=&#34;500&#34;/&gt;&#xA;&lt;/center&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s look at the diff:&lt;/p&gt;&#xA;&lt;center&gt;&#xA;&lt;img src=&#34;rproj-diff.png&#34; width=&#34;500&#34;/&gt;&#xA;&lt;/center&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s go ahead and commit this file before we start adding to our site.&lt;/p&gt;&#xA;&lt;p&gt;You should see:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://rstudio-education.github.io/sharing-short-notice/images/screenshots/build-site.png&#34; alt=&#34;RStudio build site tab&#34;&gt;&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;add-a-postcard&#34;&gt;Add a postcard&#xA;  &lt;a href=&#34;#add-a-postcard&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Docs: &#xA;&lt;a href=&#34;https://rstudio.github.io/distill/website.html#postcards&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://rstudio.github.io/distill/website.html#postcards&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now, delete your &lt;code&gt;about.Rmd&lt;/code&gt; (trust me!). We&amp;rsquo;ll create a new one with the postcards package.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;create_article(file = &amp;#34;about&amp;#34;,         # future name of .Rmd file&#xA;               template = &amp;#34;jolla&amp;#34;,    # name of template&#xA;               package = &amp;#34;postcards&amp;#34;)&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&#xA;&lt;a href=&#34;https://ecogambler.netlify.app/collection/day01/02-postcards/#templates&#34; title=&#34;Postcards templates&#34;&gt;Reminder: templates&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;site-navigation&#34;&gt;Site navigation&#xA;  &lt;a href=&#34;#site-navigation&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;_site.yml&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;theme&#34;&gt;Theme&#xA;  &lt;a href=&#34;#theme&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Docs: &#xA;&lt;a href=&#34;https://rstudio.github.io/distill/website.html#theming&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://rstudio.github.io/distill/website.html#theming&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;distill::create_theme(&amp;quot;apreshill&amp;quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Remember your &lt;code&gt;_site.yml&lt;/code&gt; file? Add the theme line there:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;name: &amp;#34;Alison Hill&amp;#34;&#xA;title: &amp;#34;Personal website of Dr. Alison Hill&amp;#34;&#xA;description: |&#xA;  This is my personal website.&#xA;output_dir: &amp;#34;docs&amp;#34;&#xA;theme: apreshill.css&#xA;navbar:&#xA;  right:&#xA;    - text: &amp;#34;Home&amp;#34;&#xA;      href: index.html&#xA;    - text: &amp;#34;About&amp;#34;&#xA;      href: about.html&#xA;output: distill::distill_article&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&#xA;&lt;h2 id=&#34;publish-a-distill-site&#34;&gt;Publish a distill site&#xA;  &lt;a href=&#34;#publish-a-distill-site&#34;&gt;&lt;svg class=&#34;anchor-symbol&#34; aria-hidden=&#34;true&#34; height=&#34;26&#34; width=&#34;26&#34; viewBox=&#34;0 0 22 22&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;currentColor&#34;&gt;&lt;/path&gt;&#xA;      &lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Easy:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Push, publish to GitHub pages &#xA;&lt;a href=&#34;https://docs.github.com/en/github/working-with-github-pages/creating-a-github-pages-site#creating-your-site&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://docs.github.com/en/github/working-with-github-pages/creating-a-github-pages-site#creating-your-site&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Medium:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;gt; use_github_pages(branch = &amp;#34;main&amp;#34;, path = &amp;#34;/docs&amp;#34;)&#xA;✓ Setting active project to &amp;#39;/Users/alison/rscratch/global-distill&amp;#39;&#xA;✓ Activating GitHub Pages for &amp;#39;apreshill/global-distill&amp;#39;&#xA;✓ GitHub Pages is publishing from:&#xA;● URL: &amp;#39;https://apreshill.github.io/global-distill/&amp;#39;&#xA;● Branch: &amp;#39;main&amp;#39;&#xA;● Path: &amp;#39;/docs&amp;#39;&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
  </item>
</channel>
  </rss>
