create_repo_ref | R Documentation |
This function constructs a list of needed information to send API calls to a specific GitHub repository. Specifically, it stores information on the repository's name and owner, the type (whether or not Enterprise GitHub), and potentially credentials to authenticate.
create_repo_ref(
repo_owner,
repo_name,
is_enterprise = FALSE,
hostname = "",
identifier = ""
)
repo_owner |
Repository owner's username or GitHub Organization name |
repo_name |
Repository name |
is_enterprise |
Boolean denoting whether or not working with Enterprise GitHub.Defaults to |
hostname |
Host URL stub for Enterprise repositories (e.g. "mycorp.github.com") |
identifier |
Ideally should be left blank and defaults to using |
Note that this package can be used for GET requests on public repositories without any authentication
(resulting in a lower rate limit.) To do this, simply pass any string into identifier
that is not
an environment variable already defined for your system (e.g. accessible through Sys.getenv("MY_VAR")
)
List of repository reference information and credentials
## Not run:
myrepo <- create_repo_ref('emilyriederer', 'myrepo')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.