view_gists: View gists in GitHub

Description Usage Arguments Details Value Examples

Description

view_gists() summarises a user's gists in a table with the properties as columns and a row for each gist. view_gist() returns a list of all properties for a single gist. browse_gist() opens the web page for the gist in the default browser.

Usage

1
2
3
4
5
view_gists(user, since, n_max = 1000, ...)

view_gist(gist, ...)

browse_gist(gist, ...)

Arguments

user

(string, optional) The login of the user. If not specified the authenticated user is used.

since

(string, optional) A date & time to filter by. Must be in the format: YYYY-MM-DD HH:MM:SS.

n_max

(integer, optional) Maximum number to return. Default: 1000.

...

Parameters passed to gh_page() or gh_request().

gist

(string) The id of the gist.

Details

When viewing gists, if a user is not specified the gists for the authenticated user are returned.

For more details see the GitHub API documentation:

Value

view_gists() returns a tibble of gist properties. view_gist() returns a list of properties for a single gist. browse_gist opens the default browser on the gist page and returns the URL.

Gist Properties:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 

  # View the authenticated user's gists
  view_gists()

  # View a specific user's gists
  view_gists("ChadGoymer")

  # View a specific gist
  view_gist("806dca6b09a39e7b6326a0c8137583e6")

  # Browse a gist
  browse_gist("806dca6b09a39e7b6326a0c8137583e6")


## End(Not run)

ChadGoymer/githapi documentation built on Oct. 22, 2021, 10:56 a.m.