set_gitlab_connection {gitlabr} | R Documentation |
Get/set a GitLab connection for all calls
Description
This sets the default value of gitlab_con
in a call to gitlab()
Usage
set_gitlab_connection(gitlab_con = NULL, ...)
get_gitlab_connection()
unset_gitlab_connection()
Arguments
gitlab_con |
A function used for GitLab API calls, such
as |
... |
if gitlab_con is NULL, a new connection is created used the parameters
is ... using |
Value
Used for side effects. Set or unset global connection settings.
Examples
## Not run:
set_gitlab_connection("https://gitlab.com", private_token = Sys.getenv("GITLAB_COM_TOKEN"))
## End(Not run)
[Package gitlabr version 2.1.0 Index]