Personalizing Online Assignments for a Statistics Class [closed] Personalizing Online Assignments for a Statistics Class [closed] r r

Personalizing Online Assignments for a Statistics Class [closed]


The way you have worded your question it's not really clear why you have to mark the students' work online. Especially since you say that you generate assignments using sweave. If you use R to generate the (randomised) questions, then you really have to use R to mark them (or output the data set).

For my courses, I use a couple of strategies.

  1. For the end of year exam (~500 students), each student gets a unique data set. The students log on to a simple web-site (we use blackboard since the University already has it set up). All students answer the same questions, but use their own unique data set. For example, "What is the mean". The answers are marked offline using an R script.

  2. In my introductory R course, students upload their R functions and I run and mark them off line. I use sweave to generate a unique pdf for each student. Their pdf shows where they lost marks. For example, they didn't use the correct named arguments.

Coupling a simple web-form with marking offline gives you a lot of flexibility and is fairly straightforward.


I found one possible solution that might work using the RGoogleDocs package. I am posting this as an answer only because it is long. I am still interested in better approaches, and hence will keep the question open.

Here is the gist of the idea, which is still untested.

  1. Create multiple versions of each assignment using knitr/Sweave.
  2. Upload them to GoogleDocs using uploadDoc.
  3. Share one document per student using setAccess which modifies access controls.
  4. Create a common Google Form to capture final answers for each student.

The advantage I see is two-fold. One, since all final answers get captured on a spreadsheet, I can access them with R and grade them automatically. Two, since I have access to all the completed assignments on Google Docs, I can skim through them and provide individual comments as required (or let some of my TAs do it).

I will provide an update, if I manage to get this working, and maybe even create an R package if it would be useful for others.


I know that this was asked a long time ago, but I think that today the best solution is the package exams plus Moodle.

The package exams can now generate XML Moodle questions that can be upload to Moodle platform as the students can solve the exercices on-line.

This is an example of a question made with exams package and uploaded to Moodle.

enter image description here