Displaying 3 results from an estimated 3 matches for "mark_my_fil".
Did you mean:
mark_my_file
2015 Feb 08
2
Testthat and global environments in R packages on CRAN
Hi!
Im currently developing an R package to automatically give students
feedback on programming assignments in R. I use the testthat package as an
engine for the unit testing and do a wrapper to make the automatic marking
easy for the students.
One function (called mark_my_file() ) will mark the students lab file using
testthat tests and a new (simple) reporter. The problem is that I need to
do the marking of the lab with an empty global environment (due to the
testthat package).
So my first thought was to:
1) store the global environement in the temporary directory as...
2015 Feb 08
1
Testthat and global environments in R packages on CRAN
...t. See https://github.com/hadley/testthat/blob/master/R/test-files.r
The students labs are simply an R script file. Say that they have an assignment to calculate sqrt(2) and store it in variable a. In the same session they should be able to test the script file when they are done (using a function mark_my_file() in the package). This function will call the testthat tests.
Say that I have two unit tests. One tests if an object called 'a' exists in the file and the second one tests if 'a' is sqrt(2) and return messages to the students pointing them in the right direction (ie 'a'...
2015 Feb 08
0
Testthat and global environments in R packages on CRAN
...>
> Im currently developing an R package to automatically give students
> feedback on programming assignments in R. I use the testthat package as an
> engine for the unit testing and do a wrapper to make the automatic marking
> easy for the students.
>
> One function (called mark_my_file() ) will mark the students lab file using
> testthat tests and a new (simple) reporter. The problem is that I need to
> do the marking of the lab with an empty global environment (due to the
> testthat package).
>
> So my first thought was to:
> 1) store the global environement...