README.md

CalcOfficeHours

This package helps find good times for office hours by finding when the students in a course are available and unavailable using their course schedules.

Cookie

We need to get the cookie for SISR. Get this from your Web browser. From Firefox, you can get it via the Preferences -> Privacy & Security and in the Cookies and and Site Data.

I get it via the Developer Tools in the Network panel by clicking on a request and looking at the Request Headers.

Unfortunately, Firefox doesn't store this cooking in the cookies.sqlite database so the package RBrowserCookies cannot extract it from there.

Computing the Availability

library(CalcOfficeHours)
sisr = RCurl::getCurlHandle(cookie = cookie("sisr.cookie"), followlocation = TRUE, cookiejar = "")
tm = mkTimes("141B", "STA", term = "202203", con = sisr)
plot(tm)

Existing and Intermediate Objects

We can break this into separate steps when we want the intermediate objects for other purposes, e.g., the roster, the student schedules.

We may already have the roster

ros = SISRTools::getRoster("141B", "202203", curl = sisr)

We can then pass this to mkTimes()

tm = mkTimes(ros = ros, con = sisr)
plot(tm)

However, we can also fetch the student schedules separately so we have them later.

tms = getStudentTimes(ros, sisr, "202203")

and then pass the result to mkTimes()

tm = mkTimes(studentTimes = tms)
plot(tm)

An example of the resulting display is

Sample

Guess when the course classes are?!



duncantl/CalcOfficeHour documentation built on April 5, 2022, 12:57 a.m.