Functions for presenting and grading homework problems given in R markdown documents