See Canvas API Documentation.

  • comment_submission: Comment on a submission

  • grade_submission: Grade a submission

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

Value

Invisibly performs the PUT call

Details

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

Examples

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