A simple project for auto grading R coding exam
answer_files
: Include all students' answer in R script file (.R)example_data
: Data for student to test theirs function.full_data
: All data inexample_data
andtest_data
test_data
: Data for grading students' answeranswer_template.R
: R script template file for studentsmain.R
: main script to grading student's answers.test_answer.R
Exam answer.train_test_split.R
: R script to split dataframe to multiple part (for example and test)
- Clone this repo. You can use RStudio to do this easily
- Add all your students' R script file in
answer_files
folder - Add your test data (data for grading students' answer) to
test_data
folder - You can add your example data (data for students' test their function) in
example_data
folder - Edit
test_answer.R
script to get exam answer. - Edit
main.R
file to grading students' answer and run it!
install.packages(c("here", "writexl", "readxl", "gradeR", "stringr", "testthat", "SimilaR"))