Skip to content

Commit cc91911

Browse files
committed
fix menu
- and add resource link
1 parent a70e1a2 commit cc91911

File tree

6 files changed

+51
-22
lines changed

6 files changed

+51
-22
lines changed

_site.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ twitter:
77
site: "@duke_data"
88
description: |
99
How to use RStudio with Git & GitHub
10-
# favicon: logo.png
1110
creative_commons: CC BY-NC
1211
navbar:
1312
logo:
@@ -17,15 +16,13 @@ navbar:
1716
- text: "Resources"
1817
href: "resources.html"
1918
- icon: fa-github
20-
# - text: "GitHub"
2119
href: https://github.com/data-and-visualization/git-tutorial/
22-
# - icon: fa-home
23-
# # - text: "Home"
24-
# menu:
25-
# - text: "Rfun Home"
26-
# href: "https://rfun.library.duke.edu/"
27-
# - text: "CDVS Home"
28-
# href: https://library.duke.edu/data/
20+
- text: "CDVS"
21+
menu:
22+
- text: "Rfun Home"
23+
href: "https://rfun.library.duke.edu/"
24+
- text: "Data & Visualization Srvc"
25+
href: https://library.duke.edu/data/
2926
output_dir: docs
3027
output:
3128
distill::distill_article:

docs/index.html

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
pre > code.sourceCode { white-space: pre; position: relative; }
2424
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
2525
pre > code.sourceCode > span:empty { height: 1.2em; }
26+
.sourceCode { overflow: visible; }
2627
code.sourceCode > span { color: inherit; text-decoration: inherit; }
2728
div.sourceCode { margin: 1em 0; }
2829
pre.sourceCode { margin: 0; }
@@ -2073,6 +2074,17 @@ <h3>${suggestion.title}</h3>
20732074
<a href="https://github.com/data-and-visualization/git-tutorial/">
20742075
<i class="fa fa-github" aria-hidden="true"></i>
20752076
</a>
2077+
<div class="nav-dropdown">
2078+
<button class="nav-dropbtn">
2079+
CDVS
2080+
2081+
<span class="down-arrow">&#x25BE;</span>
2082+
</button>
2083+
<div class="nav-dropdown-content">
2084+
<a href="https://rfun.library.duke.edu/">Rfun Home</a>
2085+
<a href="https://library.duke.edu/data/">Data &amp; Visualization Srvc</a>
2086+
</div>
2087+
</div>
20762088
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
20772089
</div>
20782090
</nav>
@@ -2101,19 +2113,19 @@ <h3 id="tips">Tips</h3>
21012113
<h4 id="clone-or-fork-from-github">Clone or fork from GitHub</h4>
21022114
<div class="layout-chunk" data-layout="l-body">
21032115
<div class="sourceCode">
2104-
<pre class="sourceCode r"><code class="sourceCode r"><span class='fu'>usethis</span><span class='fu'>::</span><span class='fu'><a href='https://usethis.r-lib.org/reference/create_from_github.html'>create_from_github</a></span><span class='op'>(</span><span class='st'>"https://github.com/data-and-visualization/git-tutorial"</span><span class='op'>)</span>
2116+
<pre class="sourceCode r"><code class="sourceCode r"><span class='fu'>usethis</span><span class='fu'>::</span><span class='fu'><a href='https://rdrr.io/pkg/usethis/man/create_from_github.html'>create_from_github</a></span><span class='op'>(</span><span class='st'>"https://github.com/data-and-visualization/git-tutorial"</span><span class='op'>)</span>
21052117
</code></pre>
21062118
</div>
21072119
</div>
21082120
<h4 id="create-the-github-repo-from-local">Create the GitHub repo from local</h4>
21092121
<div class="layout-chunk" data-layout="l-body">
21102122
<div class="sourceCode">
21112123
<pre class="sourceCode r"><code class="sourceCode r"><span class='kw'><a href='https://rdrr.io/r/base/library.html'>library</a></span><span class='op'>(</span><span class='va'><a href='https://usethis.r-lib.org'>usethis</a></span><span class='op'>)</span>
2112-
<span class='fu'><a href='https://usethis.r-lib.org/reference/use_git.html'>use_git</a></span><span class='op'>(</span><span class='op'>)</span> <span class='co'># initialize a git repo</span>
2113-
<span class='fu'><a href='https://usethis.r-lib.org/reference/use_git_ignore.html'>use_git_ignore</a></span><span class='op'>(</span><span class='op'>)</span>
2124+
<span class='fu'><a href='https://rdrr.io/pkg/usethis/man/use_git.html'>use_git</a></span><span class='op'>(</span><span class='op'>)</span> <span class='co'># initialize a git repo</span>
2125+
<span class='fu'><a href='https://rdrr.io/pkg/usethis/man/use_git_ignore.html'>use_git_ignore</a></span><span class='op'>(</span><span class='op'>)</span>
21142126
<span class='fu'>use_readme.Rmd</span><span class='op'>(</span><span class='op'>)</span>
2115-
<span class='fu'><a href='https://usethis.r-lib.org/reference/licenses.html'>use_ccby_license</a></span><span class='op'>(</span><span class='op'>)</span>
2116-
<span class='fu'><a href='https://usethis.r-lib.org/reference/use_github.html'>use_github</a></span><span class='op'>(</span><span class='op'>)</span> <span class='co'># Connect local repo to GitHub</span>
2127+
<span class='fu'><a href='https://rdrr.io/pkg/usethis/man/licenses.html'>use_ccby_license</a></span><span class='op'>(</span><span class='op'>)</span>
2128+
<span class='fu'><a href='https://rdrr.io/pkg/usethis/man/use_github.html'>use_github</a></span><span class='op'>(</span><span class='op'>)</span> <span class='co'># Connect local repo to GitHub</span>
21172129
</code></pre>
21182130
</div>
21192131
</div>
@@ -2123,11 +2135,11 @@ <h4 id="set-up-git-and-manage-github-credentials">set-up git and manage GitHub c
21232135
<pre class="sourceCode r"><code class="sourceCode r"><span class='co'># Sign-in to your GitHub account</span>
21242136
<span class='co'># Read: https://usethis.r-lib.org/articles/articles/git-credentials.html</span>
21252137
<span class='co'># Read: https://usethis.r-lib.org/articles/articles/usethis-setup.html</span>
2126-
<span class='fu'>usethis</span><span class='fu'>::</span><span class='fu'><a href='https://usethis.r-lib.org/reference/github-token.html'>create_github_token</a></span><span class='op'>(</span><span class='op'>)</span>
2138+
<span class='fu'>usethis</span><span class='fu'>::</span><span class='fu'><a href='https://rdrr.io/pkg/usethis/man/github-token.html'>create_github_token</a></span><span class='op'>(</span><span class='op'>)</span>
21272139
<span class='fu'>gitcreds</span><span class='fu'>::</span><span class='fu'><a href='https://rdrr.io/pkg/gitcreds/man/gitcreds_get.html'>gitcreds_set</a></span><span class='op'>(</span><span class='op'>)</span>
21282140
<span class='fu'>gh</span><span class='fu'>::</span><span class='fu'><a href='https://gh.r-lib.org/reference/gh_whoami.html'>gh_whoami</a></span><span class='op'>(</span><span class='op'>)</span>
2129-
<span class='fu'>usethis</span><span class='fu'>::</span><span class='fu'><a href='https://usethis.r-lib.org/reference/git_sitrep.html'>git_sitrep</a></span><span class='op'>(</span><span class='op'>)</span>
2130-
<span class='fu'>usethis</span><span class='fu'>::</span><span class='fu'><a href='https://usethis.r-lib.org/reference/use_git_config.html'>use_git_config</a></span><span class='op'>(</span>user.name <span class='op'>=</span> <span class='st'>"Jane Doe"</span>, user.email <span class='op'>=</span> <span class='st'>"[email protected]"</span><span class='op'>)</span>
2141+
<span class='fu'>usethis</span><span class='fu'>::</span><span class='fu'><a href='https://rdrr.io/pkg/usethis/man/git_sitrep.html'>git_sitrep</a></span><span class='op'>(</span><span class='op'>)</span>
2142+
<span class='fu'>usethis</span><span class='fu'>::</span><span class='fu'><a href='https://rdrr.io/pkg/usethis/man/use_git_config.html'>use_git_config</a></span><span class='op'>(</span>user.name <span class='op'>=</span> <span class='st'>"Jane Doe"</span>, user.email <span class='op'>=</span> <span class='st'>"[email protected]"</span><span class='op'>)</span>
21312143
<span class='fu'>gh</span><span class='fu'>::</span><span class='fu'>git_sitrep</span><span class='op'>(</span><span class='op'>)</span>
21322144
</code></pre>
21332145
</div>

docs/resources.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
pre > code.sourceCode { white-space: pre; position: relative; }
2424
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
2525
pre > code.sourceCode > span:empty { height: 1.2em; }
26+
.sourceCode { overflow: visible; }
2627
code.sourceCode > span { color: inherit; text-decoration: inherit; }
2728
div.sourceCode { margin: 1em 0; }
2829
pre.sourceCode { margin: 0; }
@@ -2070,6 +2071,17 @@ <h3>${suggestion.title}</h3>
20702071
<a href="https://github.com/data-and-visualization/git-tutorial/">
20712072
<i class="fa fa-github" aria-hidden="true"></i>
20722073
</a>
2074+
<div class="nav-dropdown">
2075+
<button class="nav-dropbtn">
2076+
CDVS
2077+
2078+
<span class="down-arrow">&#x25BE;</span>
2079+
</button>
2080+
<div class="nav-dropdown-content">
2081+
<a href="https://rfun.library.duke.edu/">Rfun Home</a>
2082+
<a href="https://library.duke.edu/data/">Data &amp; Visualization Srvc</a>
2083+
</div>
2084+
</div>
20732085
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
20742086
</div>
20752087
</nav>
@@ -2087,6 +2099,10 @@ <h1>Resources</h1>
20872099

20882100

20892101
<div class="d-article">
2102+
<h2 id="slides">Slides</h2>
2103+
<ul>
2104+
<li><a href="https://docs.google.com/presentation/d/1FJlC01xATiOfPmUxURHtMI6IUY1Sr7aMIQ0J4F2YJHU/edit?usp=sharing">Research Reproducibility, 2021</a></li>
2105+
</ul>
20902106
<h2 id="social-coding-sites">Social Coding Sites</h2>
20912107
<ul>
20922108
<li><p><a href="https://github.com" class="uri">https://github.com</a></p></li>
@@ -2122,7 +2138,7 @@ <h2 id="reproducibility">Reproducibility</h2>
21222138
<ul>
21232139
<li><a href="http://kbroman.org/Tools4RR/assets/lectures/07_clearcode.pdf">Writing clear code: Tools for Reproducible Research</a></li>
21242140
<li><a href="http://kbroman.org/steps2rr/">Initial Steps Toward Reproducible Research</a></li>
2125-
<li>Making your research reproducible with TIER + R + GitHub [Slides]. Cetinkaya-Rundel, M. (2016). Open Science Framework. Retrieved from <a href="https://osf.io/phyau" class="uri">https://osf.io/phyau</a></li>
2141+
<li>Making your research reproducible with TIER + R + GitHub <a href="#slides">Slides</a>. Cetinkaya-Rundel, M. (2016). Open Science Framework. Retrieved from <a href="https://osf.io/phyau" class="uri">https://osf.io/phyau</a></li>
21262142
</ul>
21272143
<div class="sourceCode" id="cb1"><pre class="sourceCode r distill-force-highlighting-css"><code class="sourceCode r"></code></pre></div>
21282144
<!--radix_placeholder_article_footer-->

docs/search.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"description": "RStudio users can leverage git Version control to enhance reproducibility.",
77
"author": [],
88
"contents": "\r\nThe usethis package and the RStudio IDE will help you orchestrate your version control repositories as RStudio projects.\r\n\r\n\r\n\r\n\r\nSetup\r\nTo get started, make a free GitHub.com account. Make sure you have the latest versions of R, RStudio, and usethis. Then, setup your RStudio configuration using two key documents: Setup, and Managing Git(Hub) Credentials.\r\nTips\r\nClone or fork from GitHub\r\n\r\n\r\nusethis::create_from_github(\"https://github.com/data-and-visualization/git-tutorial\")\r\n\r\n\r\n\r\nCreate the GitHub repo from local\r\n\r\n\r\nlibrary(usethis)\r\nuse_git() # initialize a git repo\r\nuse_git_ignore()\r\nuse_readme.Rmd()\r\nuse_ccby_license()\r\nuse_github() # Connect local repo to GitHub\r\n\r\n\r\n\r\nset-up git and manage GitHub credentials\r\n\r\n\r\n# Sign-in to your GitHub account\r\n# Read: https://usethis.r-lib.org/articles/articles/git-credentials.html\r\n# Read: https://usethis.r-lib.org/articles/articles/usethis-setup.html\r\nusethis::create_github_token()\r\ngitcreds::gitcreds_set()\r\ngh::gh_whoami()\r\nusethis::git_sitrep()\r\nusethis::use_git_config(user.name = \"Jane Doe\", user.email = \"[email protected]\")\r\ngh::git_sitrep()\r\n\r\n\r\n\r\nNext Level…\r\nTake your reproducibility to the next level. Make your code citable by connecting your GitHub repo and your ORCID (unique author ID) through to the Zenodo archival repository. Now, every time you commit a milestone release, you also mint a DOI.\r\nContainerize your repository with binder.org using the holepunch package.\r\nPublish your code in a binder.org container\r\nUse the holepunch package\r\n\r\n\r\nlibrary(holepunch)\r\n\r\nwrite_compendium_description()\r\nwrite_dockerfile()\r\ngenerate_badge()\r\nbuild_binder()\r\n\r\n\r\n\r\nThe old documentation from this site can be found in the v.0.2019 release on GitHub.\r\n\r\n\r\n\r\n",
9-
"last_modified": "2021-05-20T14:27:14-04:00"
9+
"last_modified": "2021-06-09T19:45:49-04:00"
1010
},
1111
{
1212
"path": "resources.html",
1313
"title": "Resources",
1414
"author": [],
15-
"contents": "\r\nSocial Coding Sites\r\nhttps://github.com\r\nhttps://gitlab.com\r\nhttps://bitbucket.org\r\nDuke’s GitLab Instance\r\nManaging SSH keys\r\n\r\nGUI Git Clients\r\nRStudio – Free. Great for useRs\r\nSublime’s Merge – Downloaded and evaluated for free. $100 / 3-years of upgrades.\r\nGitKracken – Free if you have the GitHub Student Pack or the GitHub Teacher toolbox\r\nSourceTree – Free. (defaults to use with BitBucket)\r\nPackages\r\nhttps://usethis.r-lib.org/\r\nholepunch to make your reproducible code a container on binder.org\r\nFree Book\r\nHappy Git and GitHub for the useR\r\nHandy Article\r\n10 Common Problems / Solutions\r\nReproducibility\r\nWriting clear code: Tools for Reproducible Research\r\nInitial Steps Toward Reproducible Research\r\nMaking your research reproducible with TIER + R + GitHub [Slides]. Cetinkaya-Rundel, M. (2016). Open Science Framework. Retrieved from https://osf.io/phyau\r\n\r\n\r\n\r\n",
16-
"last_modified": "2021-05-20T14:27:14-04:00"
15+
"contents": "\r\nSlides\r\nResearch Reproducibility, 2021\r\nSocial Coding Sites\r\nhttps://github.com\r\nhttps://gitlab.com\r\nhttps://bitbucket.org\r\nDuke’s GitLab Instance\r\nManaging SSH keys\r\n\r\nGUI Git Clients\r\nRStudio – Free. Great for useRs\r\nSublime’s Merge – Downloaded and evaluated for free. $100 / 3-years of upgrades.\r\nGitKracken – Free if you have the GitHub Student Pack or the GitHub Teacher toolbox\r\nSourceTree – Free. (defaults to use with BitBucket)\r\nPackages\r\nhttps://usethis.r-lib.org/\r\nholepunch to make your reproducible code a container on binder.org\r\nFree Book\r\nHappy Git and GitHub for the useR\r\nHandy Article\r\n10 Common Problems / Solutions\r\nReproducibility\r\nWriting clear code: Tools for Reproducible Research\r\nInitial Steps Toward Reproducible Research\r\nMaking your research reproducible with TIER + R + GitHub Slides. Cetinkaya-Rundel, M. (2016). Open Science Framework. Retrieved from https://osf.io/phyau\r\n\r\n\r\n\r\n",
16+
"last_modified": "2021-06-09T19:45:50-04:00"
1717
}
1818
],
1919
"collections": []

docs/sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
</url>
77
<url>
88
<loc>https://rfun.library.duke.edu/resources.html</loc>
9-
<lastmod>2020-12-18T12:19:51-05:00</lastmod>
9+
<lastmod>2021-06-09T19:45:46-04:00</lastmod>
1010
</url>
1111
</urlset>

resources.Rmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ title: Resources
33
site: distill::distill_website
44
---
55

6+
## Slides
7+
8+
- [Research Reproducibility, 2021](https://docs.google.com/presentation/d/1FJlC01xATiOfPmUxURHtMI6IUY1Sr7aMIQ0J4F2YJHU/edit?usp=sharing)
9+
610
## Social Coding Sites
711

812
- https://github.com

0 commit comments

Comments
 (0)