Learn R Programming

projmgr (version 0.1.2)

check_credentials: Check for valid credentials and repo permissions

Description

Check for valid credentials and repo permissions

Usage

check_credentials(ref)

Value

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

Arguments

ref

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

Examples

Run this code
if (FALSE) {
experigit <- create_repo_ref('emilyriederer', 'experigit')
check_authentication(experigit)
}

Run the code above in your browser using DataLab