## Sample usage for students
if (FALSE) ## Validate the project in the current directory using the
## configuration file 'validateconf-prototype'.
roger_validate(config_file = "validateconf-prototype")
## Sample usage for graders.
if (FALSE) ## First check the availability of the grading tools.
roger_checkreq()
## Clone all repositories matching the pattern '[0-9]{9}_prototype'
## in the BitBucket project 'a2042-12345'.
roger_clone("[0-9]{9}_prototype", "a2042-12345")
## Grade all directories (repositories) starting with '[0-9]*'
## as of 2020-04-30 23:59:59 using the configuration in file
## 'gradeconf-prototype'; write results in file 'GRADING.txt'
## of each directory; leave repositories in detached head state
## for manual grading of files.
roger_grade("[0-9]*/", config_file = "gradeconf-prototype",
time_limit = "2020-04-30 23:59:59", detached_head = TRUE,
output_file = "GRADING.txt")
## Publish results in every repository in a new branch
## 'grading-results'. No need to specify the grading results file
## name since 'GRADING.txt' is the default in an English locale.
roger_push("grading-results", "[0-9]*/", create = TRUE,
message = c("Here are your grading results"))
## Return all repositories to main branch.
roger_switch("main", "[0-9]*/")
Run the code above in your browser using DataLab