Description Usage Arguments Value Examples
Checks whether a student submitted the required files. You can change the parameters as necessary.
1 2 |
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.
1 2 3 4 5 6 7 8 9 10 | 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.