submission_response: Respond to submission

submission_responseR Documentation

Respond to submission

Description

See Canvas API Documentation.

Usage

comment_submission(
  course_id,
  assignment_id,
  user_id,
  comm,
  to_group = TRUE,
  visible = TRUE
)

grade_submission(course_id, assignment_id, user_id, grade)

Arguments

course_id

A valid canvas course id

assignment_id

A valid assignment id

user_id

A valid user id

comm

What comment to give

to_group

Whether the comment should be sent to all members of the group

visible

Whether the comment should be visible to student or not

grade

grade to give

Details

This plays nicely with purrr::map2, so it's easy to assign comments or grades en masse to students.

Value

Invisibly performs the PUT call

Examples

## Not run: comment_submission(1350207, 5681164, 4928217, "test")
## Not run: grade_submission(1350207, 5681164, 4928217, 80)

daranzolin/rcanvas documentation built on May 18, 2024, 2:33 p.m.