Skip to contents

Writes observable chunks that add the results of a quiz in google forms to a quarto document.

Usage

cq_add_results(sheet_url, type, ...)

Arguments

sheet_url

URL to the google sheet containing the results

type

Type of question being plotted.

...

Optional arguments to the plotting function. Options are "multiple_choice_grid" and "multiple_choice"

Details

IMPORTANT: The chunk used to run this function must have the chunk option #| output: asis.

Remember to share the google sheet containing the answers.

There must be at least one row of answers or ojs will fail (on todo list)

Remember to delete the answers from the previous year from the google sheet before class. (Could add a temporal filter option).