You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -2074,41 +2043,62 @@ <h1>Git, GitHub & RStudio</h1>
2074
2043
2075
2044
2076
2045
<divclass="d-article">
2077
-
<p>Using RStudio to manage version control got a lot easier with the version 2.x release of the <ahref="https://usethis.r-lib.org/"><code>usethis</code></a> package. Therefore, this site now consists of links and tips.</p>
2078
-
<p>After <code>usethis</code> setup, take your reproducibility to the next level. <ahref="https://guides.github.com/activities/citable-code/">Make your code citable</a> by connecting your GitHub repo and your <ahref="https://orcid.org/register">ORCID</a> (unique author ID) to the <ahref="https://zenodo.org/">Zenodo</a> archival repository. This way, every time you commit a milestone release, you can mint a new DOI. Then, put your repository into a binder.org container with the <code>holepunch</code> package.</p>
2046
+
<p>Use RStudio to manage version control. It’s easy with the <ahref="https://usethis.r-lib.org/"><code>usethis</code></a> package (version 2.x or ^.)</p>
2047
+
<p>Take your reproducibility to the next level. <ahref="https://guides.github.com/activities/citable-code/">Make your code citable</a> by connecting your GitHub repo and your <ahref="https://orcid.org/register">ORCID</a> (unique author ID) through to the <ahref="https://zenodo.org/">Zenodo</a> archival repository. Now, every time you commit a milestone release, you also mint a DOI.</p>
2048
+
<p>Containerize your repository with binder.org using the <ahref="https://karthik.github.io/holepunch/"><code>holepunch</code> package</a>.</p>
2079
2049
<h3id="setup">Setup</h3>
2080
-
<p>To get started, get a free GitHub.com account. Make sure you have the latest versions of R, RStudio, (Rtools if you’re Windows), and usethis. Then, you need to setup your RStudio configuration. Two key documents will help: <ahref="https://usethis.r-lib.org/articles/articles/usethis-setup.html">Setup</a>, and <ahref="https://usethis.r-lib.org/articles/articles/git-credentials.html">Managing Git(Hub) Credentials</a></p>
2050
+
<p>To get started, make a free GitHub.com account. Make sure you have the latest versions of R, RStudio, (Rtools if you’re Windows), and usethis. Then, setup your RStudio configuration using two key documents: <ahref="https://usethis.r-lib.org/articles/articles/usethis-setup.html">Setup</a>, and <ahref="https://usethis.r-lib.org/articles/articles/git-credentials.html">Managing Git(Hub) Credentials</a>.</p>
2081
2051
<h3id="tips">Tips</h3>
2082
2052
<h4id="clone-or-fork-from-github">Clone or fork from GitHub</h4>
<spanclass='fu'><ahref='https://usethis.r-lib.org/reference/use_git.html'>use_git</a></span><spanclass='op'>(</span><spanclass='op'>)</span><spanclass='co'># initialize a git repo</span>
<spanclass='fu'><ahref='https://usethis.r-lib.org/reference/use_github.html'>use_github</a></span><spanclass='op'>(</span><spanclass='op'>)</span><spanclass='co'># Connect local repo to GitHub</span>
2068
+
</code></pre>
2069
+
</div>
2070
+
</div>
2091
2071
<h4id="set-up-git-and-manage-github-credentials">set-up git and manage GitHub credentials</h4>
<p>The old documentation from this site can be found in the <ahref="https://github.com/data-and-visualization/git-tutorial/releases/tag/v0.9.2019">v.0.2019 release</a> on GitHub.</p>
2111
-
<divclass="sourceCode" id="cb5"><preclass="sourceCode r distill-force-highlighting-css"><codeclass="sourceCode r"></code></pre></div>
2097
+
</div>
2098
+
</div>
2099
+
<hr/>
2100
+
<p><em>The old documentation from this site can be found in the <ahref="https://github.com/data-and-visualization/git-tutorial/releases/tag/v0.9.2019">v.0.2019 release</a> on GitHub</em>.</p>
2101
+
<divclass="sourceCode" id="cb1"><preclass="sourceCode r distill-force-highlighting-css"><codeclass="sourceCode r"></code></pre></div>
2112
2102
<!--radix_placeholder_article_footer-->
2113
2103
<!--/radix_placeholder_article_footer-->
2114
2104
</div>
@@ -2117,38 +2107,24 @@ <h4 id="publish-your-code-in-a-binder.org-container">Publish your code in a bind
2117
2107
</div>
2118
2108
2119
2109
2120
-
2121
-
2122
-
<hr>
2123
-
<spanclass="footer">
2124
-
2125
-
<spanclass="left-foot">
2126
-
2127
-
<ahref="https://rfun.library.duke.edu/">R We Having Fun Yet‽</a> -- an R Learning Series<br>
2128
-
<ahref="http://library.duke.edu/data/">Center for Data & Visualization Sciences</a><br>
2129
-
<ahref="http://library.duke.edu/">Duke University Libraries</a>
2130
-
2131
-
</span>
2132
-
2133
-
<spanclass="right-foot">
2134
-
2135
-
<spanclass="cc">
2136
-
<br>
2137
-
<!-- Key: a: SA, b: BY, c: CC Circle, d: ND, n: NC, m: Sampling, s: Share, r: Remix, C: CC Full Logo -->
2138
-
C bn</span><br>
2139
-
Shareable via Creative Commons: CC <ahref="https://creativecommons.org/licenses/by-nc/4.0/">By-NC</a>
2140
-
2141
-
</span>
2142
-
2143
-
</span>
2144
2110
<!--radix_placeholder_site_after_body-->
2145
2111
<!--/radix_placeholder_site_after_body-->
2146
2112
<!--radix_placeholder_appendices-->
2147
-
<divclass="appendix-bottom"></div>
2113
+
<divclass="appendix-bottom">
2114
+
<h3id="updates-and-corrections">Corrections</h3>
2115
+
<p>If you see mistakes or want to suggest changes, please <ahref="https://github.com/data-and-visualization/git-tutorial/issues/new">create an issue</a> on the source repository.</p>
2116
+
<h3id="reuse">Reuse</h3>
2117
+
<p>Text and figures are licensed under Creative Commons Attribution <arel="license" href="https://creativecommons.org/licenses/by-nc/4.0/">CC BY-NC 4.0</a>. Source code is available at <ahref="https://github.com/data-and-visualization/git-tutorial">https://github.com/data-and-visualization/git-tutorial</a>, unless otherwise noted. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".</p>
2118
+
</div>
2148
2119
<!--/radix_placeholder_appendices-->
2149
2120
<!--radix_placeholder_navigation_after_body-->
2121
+
<divclass="distill-site-nav distill-site-footer">
2122
+
<p><ahref="https://rfun.library.duke.edu/">R We Having Fun Yet‽</a></p>
2123
+
<p><ahref="https://library.duke.edu/data/">Center for Data & Visualization Sciences</a>. <ahref="https://library.duke.edu/">Duke University Libraries</a></p>
<li>GitKracken – <strong>Free</strong> if you have the <ahref="https://education.github.com/pack">GitHub Student</a> Pack or the <ahref="https://www.gitkraken.com/github-teacher-toolbox">GitHub Teacher toolbox</a></li>
2090
2059
<li><ahref="https://www.sourcetreeapp.com/">SourceTree</a> – Free. (defaults to use with <ahref="https://bitbucket.org/">BitBucket</a>)</li>
<ahref="https://rfun.library.duke.edu/">R We Having Fun Yet‽</a> -- an R Learning Series<br>
2127
-
<ahref="http://library.duke.edu/data/">Center for Data & Visualization Sciences</a><br>
2128
-
<ahref="http://library.duke.edu/">Duke University Libraries</a>
2129
-
2130
-
</span>
2131
-
2132
-
<spanclass="right-foot">
2133
-
2134
-
<spanclass="cc">
2135
-
<br>
2136
-
<!-- Key: a: SA, b: BY, c: CC Circle, d: ND, n: NC, m: Sampling, s: Share, r: Remix, C: CC Full Logo -->
2137
-
C bn</span><br>
2138
-
Shareable via Creative Commons: CC <ahref="https://creativecommons.org/licenses/by-nc/4.0/">By-NC</a>
2139
-
2140
-
</span>
2141
-
2142
-
</span>
2143
2089
<!--radix_placeholder_site_after_body-->
2144
2090
<!--/radix_placeholder_site_after_body-->
2145
2091
<!--radix_placeholder_appendices-->
2146
-
<divclass="appendix-bottom"></div>
2092
+
<divclass="appendix-bottom">
2093
+
<h3id="updates-and-corrections">Corrections</h3>
2094
+
<p>If you see mistakes or want to suggest changes, please <ahref="https://github.com/data-and-visualization/git-tutorial/issues/new">create an issue</a> on the source repository.</p>
2095
+
<h3id="reuse">Reuse</h3>
2096
+
<p>Text and figures are licensed under Creative Commons Attribution <arel="license" href="https://creativecommons.org/licenses/by-nc/4.0/">CC BY-NC 4.0</a>. Source code is available at <ahref="https://github.com/data-and-visualization/git-tutorial">https://github.com/data-and-visualization/git-tutorial</a>, unless otherwise noted. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".</p>
2097
+
</div>
2147
2098
<!--/radix_placeholder_appendices-->
2148
2099
<!--radix_placeholder_navigation_after_body-->
2100
+
<divclass="distill-site-nav distill-site-footer">
2101
+
<p><ahref="https://rfun.library.duke.edu/">R We Having Fun Yet‽</a></p>
2102
+
<p><ahref="https://library.duke.edu/data/">Center for Data & Visualization Sciences</a>. <ahref="https://library.duke.edu/">Duke University Libraries</a></p>
0 commit comments