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
<h4>HTTPS: Configure R/RStudio to work with your Git/GitHub</h4>
513
513
<p>For most new Git users, the following steps are the most convenient and efficient for configuring your new applications for Git version control. <strong>If</strong> you use <strong>two-factor</strong> authentication with <strong>GitHub</strong>, skip the the SSH section below.</p>
514
+
<p>In your RStudio Console…. (<ahref="http://keziamanlove.com/wp-content/uploads/2013/10/RStudioScreenshot1_Inkscape.png">image</a>)</p>
514
515
<olstyle="list-style-type: decimal">
515
-
<li><p>In your RStudio Console, install the <code>usethis</code> package. If you have not installed a package before, this <ahref="https://tutorials.shinyapps.io/00-setup/#section-install-packages">brief install package videos</a> is helpful.</p>
516
-
<olstyle="list-style-type: lower-alpha">
517
-
<li>Install the <code>usethis</code> package</li>
516
+
<li>Install the <code>usethis</code> package. (If you have not installed a <strong>package</strong> before, this <ahref="https://tutorials.shinyapps.io/00-setup/#section-install-packages">brief install package videos</a> is helpful)</li>
518
517
<li><p>Load the <code>usethis</code> package:</p>
519
-
<olstyle="list-style-type: decimal">
518
+
<olstyle="list-style-type: lower-alpha">
520
519
<li><code>library(usethis)</code></li>
521
520
<li>(Video: <ahref="https://youtu.be/3RWb5U3X-T8?t=159">Example of loading a libraryin the RStudio console</a>)</li>
522
521
</ol></li>
523
522
<li><p>In the RStudio <strong>console</strong>, configure <code>usethis</code> You will <strong>need to follow the instructions from within the console</strong>, after invoking the <code>use_usethis</code> function:</p>
524
-
<olstyle="list-style-type: decimal">
523
+
<olstyle="list-style-type: lower-alpha">
525
524
<li><code>use_usethis()</code></li>
526
525
<li>Restart R</li>
527
526
</ol></li>
528
527
<li><p>Configure your Git client with <ahref="https://github.com/settings/emails">your GitHub email address</a></p>
<li><p>Generate a GitHub Personal Access Token (PAT) and associate that token within your RStudio Environment (<code>.Renviron</code>). Do this by running the following command <strong>in the RStudio console</strong> and following all the prompts. When you run the command, below, this will spawn a GitHub Page that generates a PAT. Copy the PAT into your clipboard buffer. Paste the PAT into RStudio’s editor window for the <code>.Renviron</code> file. the PAT is your personal token; do not share it. You can do all this by invoking the <code>browse_github_pat</code> fuction in the RStudio Console and following the resulting console prompts. If you need more detail, see the <ahref="https://usethis.r-lib.org/articles/articles/usethis-setup.html">usethis Setup</a> instructions.</p>
535
-
<olstyle="list-style-type: decimal">
536
-
<li>usethis::browse_github_pat()</li>
534
+
<olstyle="list-style-type: lower-alpha">
535
+
<li><code>browse_github_pat()</code></li>
537
536
<li>The RStudio Console will direct you how to <code>edit_r_environ()</code> in the RStudio Editor window</li>
538
537
<li>Restart R</li>
539
538
</ol></li>
540
-
</ol></li>
541
539
</ol>
542
540
<p>Let’s assume you did everything correctly. Now you’re ready go to the <ahref="handson.html">Hands-On</a> section which we will cover in the workshop.</p>
Copy file name to clipboardExpand all lines: outline.Rmd
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -66,31 +66,31 @@ The following are one-time configuration steps. For simplest configuration, fol
66
66
67
67
For most new Git users, the following steps are the most convenient and efficient for configuring your new applications for Git version control. **If** you use **two-factor** authentication with **GitHub**, skip the the SSH section below.
68
68
69
-
1.In your RStudio Console, install the `usethis` package. If you have not installed a package before, this [brief install package videos](https://tutorials.shinyapps.io/00-setup/#section-install-packages) is helpful.
69
+
In your RStudio Console.... ([image](http://keziamanlove.com/wp-content/uploads/2013/10/RStudioScreenshot1_Inkscape.png))
70
70
71
-
a. Install the `usethis` package
72
-
a. Load the `usethis` package:
73
-
74
-
1. `library(usethis)`
75
-
1. (Video: [Example of loading a libraryin the RStudio console](https://youtu.be/3RWb5U3X-T8?t=159))
71
+
1. Install the `usethis` package. (If you have not installed a **package** before, this [brief install package videos](https://tutorials.shinyapps.io/00-setup/#section-install-packages) is helpful)
72
+
1. Load the `usethis` package:
73
+
74
+
a. `library(usethis)`
75
+
a. (Video: [Example of loading a libraryin the RStudio console](https://youtu.be/3RWb5U3X-T8?t=159))
76
76
77
-
a. In the RStudio **console**, configure `usethis` You will **need to follow the instructions from within the console**, after invoking the `use_usethis` function:
77
+
1. In the RStudio **console**, configure `usethis` You will **need to follow the instructions from within the console**, after invoking the `use_usethis` function:
78
78
79
-
1. `use_usethis()`
80
-
1. Restart R
81
-
82
-
a. Configure your Git client with [your GitHub email address](https://github.com/settings/emails)
1. For example: `use_git_config(user.name = "libjohn", user.email = "libjohn@duke.edu")`
87
-
82
+
1. Configure your Git client with [your GitHub email address](https://github.com/settings/emails)
88
83
89
-
a. Generate a GitHub Personal Access Token (PAT) and associate that token within your RStudio Environment (`.Renviron`). Do this by running the following command **in the RStudio console** and following all the prompts. When you run the command, below, this will spawn a GitHub Page that generates a PAT. Copy the PAT into your clipboard buffer. Paste the PAT into RStudio's editor window for the `.Renviron` file. the PAT is your personal token; do not share it. You can do all this by invoking the `browse_github_pat` fuction in the RStudio Console and following the resulting console prompts. If you need more detail, see the [usethis Setup](https://usethis.r-lib.org/articles/articles/usethis-setup.html) instructions.
a. For example: `use_git_config(user.name = "libjohn", user.email = "libjohn@duke.edu")`
90
87
91
-
1. usethis::browse_github_pat()
92
-
1. The RStudio Console will direct you how to `edit_r_environ()` in the RStudio Editor window
93
-
1. Restart R
88
+
89
+
1. Generate a GitHub Personal Access Token (PAT) and associate that token within your RStudio Environment (`.Renviron`). Do this by running the following command **in the RStudio console** and following all the prompts. When you run the command, below, this will spawn a GitHub Page that generates a PAT. Copy the PAT into your clipboard buffer. Paste the PAT into RStudio's editor window for the `.Renviron` file. the PAT is your personal token; do not share it. You can do all this by invoking the `browse_github_pat` fuction in the RStudio Console and following the resulting console prompts. If you need more detail, see the [usethis Setup](https://usethis.r-lib.org/articles/articles/usethis-setup.html) instructions.
90
+
91
+
a. `browse_github_pat()`
92
+
a. The RStudio Console will direct you how to `edit_r_environ()` in the RStudio Editor window
93
+
a. Restart R
94
94
95
95
96
96
Let's assume you did everything correctly. Now you're ready go to the [Hands-On](handson.html) section which we will cover in the workshop.
0 commit comments