peer_assign adds files from authors' repositories to review repositories. The function creates an issue on the reviewers' repositories informing them that the review files are available and creates links to the relevant documents.

peer_assign(
  org,
  roster,
  path = NULL,
  local_path_review = NULL,
  prefix = "",
  suffix = "",
  exclude_pattern = c(".gitignore", ".Rhistory", "*.Rproj", "*.html", "*.md", "*.pdf"),
  message = NULL,
  branch = "master",
  overwrite = FALSE
)

Arguments

org

Character. Name of GitHub Organization.

roster

Character. Data frame or file path of roster file with author-reviewer assignments. Must contain a column user with GitHub user names of authors, a column user_random with randomized tokens for user names, and one or more rev* columns that specify review assignments as values of the vector user_random.

path

Character. File name or vector of file names to be included. If NULL, all files not contained in folders, except .gitignore, .Rhistory, .Rproj, *.html, *.md, and *.pdf will be moved to the reviewers' repositories.

local_path_review

Character. Local file path of review feedback form to be added (must be .Rmd document), defaults to NULL. If NULL, no review form will be added to authors' repositories.

prefix

Character. Common repository name prefix.

suffix

Character. Common repository name suffix.

exclude_pattern

Character. File extensions of files to not be moved to reviewer repositories if path is NULL, defaults to c(".gitignore", ".Rhistory", "*.Rproj", "*.html", "*.md", "*.pdf").

message

Character. Commit message, defaults to "Assigning review."

branch

Character. Name of branch the file should be committed to, defaults to master.

overwrite

Logical. Whether existing files in reviewers' repositories should be overwritten, defaults to FALSE.

See also

Examples

if (FALSE) { peer_assign( org = "ghclass-test", roster = "hw2_roster_seed12345.csv", path = c("hw2_task.Rmd", "iris_data.csv"), form_review = "hw2_review.Rmd", prefix = "hw2-" ) }