check_credentials: Check for valid credentials and repo permissions

View source: R/check.R

check_credentialsR Documentation

Check for valid credentials and repo permissions

Description

Check for valid credentials and repo permissions

Usage

check_credentials(ref)

Arguments

ref

Any repository reference being used. Repository information is stripped out and only authentication credentials are validated.

Value

Prints GitHub username as determined by credentials (if valid) and repo-level permissions (if any), else throws 401 Unauthorized error.

Examples

## Not run: 
experigit <- create_repo_ref('emilyriederer', 'experigit')
check_authentication(experigit)

## End(Not run)

emilyriederer/projmgr documentation built on Jan. 26, 2024, 3:09 a.m.