library(gitgrade)
r
setup_grading_files(dir = "stats101-grades")
In that directory, edit the STUDENTS.csv
and ASSIGNMENTS.csv
files using a suitable editor, e.g. a spreadsheet program. You can go back and revise or add on to these files at any time.
ASSIGNMENTS.csv
should be in YYYY-MM-DD format.ASSIGNMENTS.csv
r
ASSIGNMENTS <- gitgrade::read_assignment_file(example = TRUE)
knitr::kable(head(ASSIGNMENTS))
Students.csv
r
STUDENTS <- gitgrade:::read_student_file(example = TRUE)
knitr::kable(head(STUDENTS))
TODO:
update_course()
that will clone the repositories. So you would set up the course like this:set_up_course("Math 253")
update_course()
update_course()
again.pull = TRUE
argument for get_log()
You only need to clone at the beginning of the course or when a new repository is added.
Use clone_repos()
. This will bring in all the repositories listed in stat101/STUDENTS.csv
. If a repo has already been cloned, it will be skipped.
You update the repositories by doing a "git pull" on each. You need to do this whenever you want to update the files.
update_repos()
The first step is to create a log file based on all the repositories.
The log file doesn't list the files in the repos, it lists the files that have been pushed to the repos. The point of this is to ignore the file stubs that were created to hold the assignments.
In the root directory for the repositories^[That is, the directory relative to which the repo names in Students_253_Fall_2016.csv
are given.] run
CommitLog <- get_log()
There is an optional argument to set the date after which you want the pushes. You can set this to avoid any initial pushes when the stubs were created.
Based on this log, you can search for
missing_assignments(Log253)
Assignments_253.csv
oddball_files(Log253)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.