add_leanpub_collaborator: Add Leanpub as Collaborator

Description Usage Arguments Value

View source: R/add_leanpub_collaborator.R

Description

Add Leanpub as Collaborator

Usage

1
add_leanpub_collaborator(course_dir = ".", auth_token = NULL)

Arguments

course_dir

directory with course materials or a course_check object

auth_token

Provide a personal access token (PAT) from https://github.com/settings/tokens. If NULL, will use the logic described in gh::gh_whoami() to look for a token stored in an environment variable. Use usethis::browse_github_pat() to help set up your PAT.

Value

Answer from the API as a gh_response object, which is also a list. Failed requests will generate an R error.


muschellij2/didactr documentation built on March 17, 2021, 12:45 p.m.