Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 3646fb3

Browse files
committed
#80 update docs throughout pkg to tell users to create a GITHUB PAT with gist scope
1 parent 5f3e2d8 commit 3646fb3

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

‎DESCRIPTION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Description: Work with 'GitHub' 'gists' from 'R' (e.g.,
1010
'gist' 'commits', and get rate limit information when 'authenticated'. Some
1111
requests require authentication and some do not. 'Gists' website:
1212
<https://gist.github.com/>.
13-
Version: 0.4.3.9210
13+
Version: 0.4.4.9110
1414
Authors@R: c(
1515
person("Scott", "Chamberlain", role = c("aut", "cre"),
1616
email = "myrmecocystus@gmail.com",

‎R/gist_auth.R‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
#'
66
#' There are two ways to authorise gistr to work with your GitHub account:
77
#'
8-
#' - Generate a personal access token at
9-
#' <https://help.github.com/articles/creating-an-access-token-for-command-line-use>
10-
#' and record in the `GITHUB_PAT` envar.
8+
#' - Generate a personal access token with the gist scope selected, and set it
9+
#' as the `GITHUB_PAT` environment variable per session using `Sys.setenv`
10+
#' or across sessions by adding it to your `.Renviron` file or similar.
11+
#' See
12+
#' https://help.github.com/articles/creating-an-access-token-for-command-line-use
13+
#' for help
1114
#' - Interactively login into your GitHub account and authorise with OAuth.
1215
#'
1316
#' Using `GITHUB_PAT` is recommended.

‎README.Rmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ library("gistr")
4949

5050
There are two ways to authorise gistr to work with your GitHub account:
5151

52-
* Generate a personal access token (PAT) at [https://help.github.com/articles/creating-an-access-token-for-command-line-use](https://help.github.com/articles/creating-an-access-token-for-command-line-use) and record it in the `GITHUB_PAT` environment variable.
52+
* Generate a personal access token (PAT) **with the gist scope selected**at [https://help.github.com/articles/creating-an-access-token-for-command-line-use](https://help.github.com/articles/creating-an-access-token-for-command-line-use) and record it in the `GITHUB_PAT` environment variable.
5353
- To test out this approach, execute this in R: `Sys.setenv(GITHUB_PAT = "blahblahblah")`, where "blahblahblah" is the PAT you got from GitHub. Then take `gistr` out for a test drive.
5454
- If that works, you will probably want to define the GITHUB_PAT environment variable in a file such as `~/.bash_profile` or `~/.Renviron`.
5555
* Interactively login into your GitHub account and authorise with OAuth.

‎man/gist_auth.Rd‎

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎vignettes/gistr.Rmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ library("gistr")
3434

3535
There are two ways to authorise gistr to work with your GitHub account:
3636

37-
* Generate a personal access token (PAT) at [https://help.github.com/articles/creating-an-access-token-for-command-line-use](https://help.github.com/articles/creating-an-access-token-for-command-line-use) and record it in the `GITHUB_PAT` envar.
37+
* Generate a personal access token (PAT) **with the gist scope selected**at [https://help.github.com/articles/creating-an-access-token-for-command-line-use](https://help.github.com/articles/creating-an-access-token-for-command-line-use) and record it in the `GITHUB_PAT` envar.
3838
* Interactively login into your GitHub account and authorise with OAuth.
3939

4040
Using the PAT is recommended.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /