has_gradable_files: Check whether a Student submitted the required files

Description Usage Arguments Value Examples

View source: R/convt2list.R

Description

Checks whether a student submitted the required files. You can change the parameters as necessary.

Usage

1
2
has_gradable_files(student_dir, conform_Naming = NULL,
                   Rscript = TRUE, Rmd = TRUE, pdf_or_html = TRUE)

Arguments

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

Value

The function returns a dataframe with id of the students column and a logical column indicating whether the student has the required files.

Examples

 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)

oonyambu/stats_102A documentation built on July 21, 2020, 7:28 a.m.