get_course_items: Function to return various course items.

View source: R/course-data.R

get_course_itemsR Documentation

Function to return various course items.

Description

Returns a data.frame of various course items. See "item" argument below. Omitting the "item argument returns a course object.

Usage

get_course_items(course_id, item, include = NULL)

Arguments

course_id

A valid Canvas course id

item

Optional – one of "settings", "discussion_topics", "todo", "enrollments", "features", "files", "modules", "front_page", "pages", "quizzes", "folders".

include

Optional additions to the query string

Value

data frame

Examples

#' get_course_items(course_id = 20, item = "settings")
#' get_course_items(course_id = 20, item = "enrollments")
#' get_course_items(20, item = "users", include = "email")

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