tbrown122387 / gradeR

helps grade R script assignment submissions!
Other
4 stars 4 forks source link

require() does not work, but library() does #12

Closed mcmullenhjack closed 4 years ago

mcmullenhjack commented 4 years ago

When loading in a package using, for example, require(stringr), the autograder does not recognize the function. However, when using library(stringr), it works just fine. Both functions perform the same action, thus they should both work.

tbrown122387 commented 4 years ago

@mcmullenhjack I was calling tryCatch in the callr::r subprocess, and not in the main process. I've read this, and I think I've fixed this, but if you notice it on any new assignment, let me know. In the meantime I'm closing the issue.