has_gradable_files | R Documentation |
Checks whether a student submitted the required files. You can change the parameters as necessary.
has_gradable_files(student_dir, conform_Naming = NULL,
Rscript = TRUE, Rmd = TRUE, pdf_or_html = TRUE)
student_dir |
A character string. The directory that contains student folders/files |
conform_Naming |
A regex to be searched for in the names of the student files. Default is NULL |
Rscript |
A logical value. Check whether the directory constains a .R file. Default is TRUE |
Rmd |
A logical value. Check whether the directory constains a .Rmd file. Default is TRUE |
pdf_or_html |
A logical value. Check whether the directory constains a .pdf or .html file. Default is TRUE |
The function returns a dataframe with id of the students column and a logical column indicating whether the student has the required files.
library(stats102A)
## Not run: has_gradable_files("../students")
# To check for the naming ie "987654321_stats102a_hw1"
## Not run: has_gradable_files("../students", "^\d{9}_stats102a_hw1\.")
# To check for only Rmd and pdf/html
## Not run: has_gradable_files("../students", Rscript = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.