Skip to contents

get_rosters() uses an active rvest session to find data on each course, including a table of students enrolled.

Usage

get_rosters(courses, .session = NULL, term = NULL)

Arguments

courses

A course table

.session

(optional) An active rvest session. If this value is undefined, the session will be derived from an attribute set on courses

term

(optional) The term to be used in this query. If undefined, this value will be inherited from rosters or from the environmental variable defined at setup.

Value

A list of items, with one item per course. Each item will identify the course CRN, catalog number, title, schedule, and a table showing the roster of student enrollments. The current rvest session is attached as an attribute, used for chaining functions together.

Examples

if (FALSE) {
  my_classes <- authorize() |>
    get_rosters()
}