Skip to contents

There is no direct API for gradebook export, but this function gets equivalent information by joining Submissions, Assignments and Users.

Usage

canvas_gradebook(simplify = TRUE)

Arguments

simplify

Logical. If TRUE (default), return user_name, assignment_name, grade, score, points_possible, assignment_id, user_id, sortable_name, email. If FALSE, return 86 columns, of which user is a list column which you can tidyr::hoist() or tidyr::unnest_wider() if desired.

Value

A tibble containing submission and assignment data and user emails.

Details

Prefixes user_ and assignment_ are added to disambiguate the fields user_id, user_name, assignment_id and assignment_name.

Examples

if (FALSE) { # \dontrun{
# Retrieve simplified gradebook data
gradebook <- canvas_gradebook()

# Retrieve full gradebook data
full_gradebook <- canvas_gradebook(simplify = FALSE)
} # }