This course demonstrates how to use the new logging feature in swirl with Google Forms. This is a simple way for course instructors to monitor how their students are performing in swirl courses.
# install.packages("swirl")
library(swirl)
install_course_github("seankross", "Google_Forms_Course")
swirl()
Follow these steps in order to set up a Google Form that can collect student's swirl progress:
- Create a new form by clicking "New" on https://drive.google.com
- Name your form something memorable.
- Your form should have only one question which should be a paragraph type question.
- In the upper right corner of the form there should be three vertical white dots. Click on that icon and then click "Get pre-filled link." This will open a new window.
- Click "Submit" and copy the generated link.
- Paste the generated link into
customTests.R
where indicated, so that a string containing the link is assigned to thepre_fill_link
variable in the functionsubmit_log()
.
- swirl logging is disabled by default. Add the line
swirl_options(swirl_logging = TRUE)
toinitLesson.R
in order to enable logging. - Copy my customTest.R file and edit the assignment of
pre_fill_link
as described above. - The last question of the lesson should look very similar to the last question
in this
lesson.yaml
. Of course you should feel free to edit the output. dependson.txt
must at least containbase64enc
.
- Install swirlify. You must use a version of swirlify later than 0.4.1.
- Download the
csv
results from Google Forms. - Run
swirlify::google_form_decode()
and select thecsv
you downloaded. google_form_decode()
will return a data frame containing how each of your students performed on every question.
Open an issue here or email us: [email protected]