Skip to contents

A personal access token from gitlab.com account settings. Optional for listing/downloading PUBLIC projects (used here only to raise GitLab's unauthenticated rate limit); required for private projects.

Usage

gitlab_pat(pat = NULL)

Arguments

pat

the token to set, or NULL to get the current token

Value

the current token (character; "" when none is set)

Details

Store it as the GITLAB_PAT environment variable so it is read every time R starts.

Examples

gitlab_pat() # returns "" unless a token is set
#> [1] ""