Name Mode Size
..
manual 040000
testthat 040000
README_names.txt 100644 1 kb
README_warnings.txt 100644 0 kb
testthat.R 100644 0 kb
README_names.txt
The names of the files are as self explanatory as I could think of. Some files are names as "test.Z-somestring.R". Those are files where we set the seed of the random number generator to a specific value. In files with a name "test.Z*", at the very end we do a "set.seed(NULL)" to re-initialize the seed of the random number generator. This is done so that any files that are run after it do not have the same stream of random numbers. Since I want to avoid re-initilizing in every file, I move those specific test cases with fixed seeds to separate files. Why the Z? It is true that the documentation for testthat asks that we do not rely in a specific order for how files are tested. In this sense, any file that uses a fixed seed cleans up after itself, so the order in which files are tested should never mean we get a fixed stream. Nevertheless, using the "Z" will often mean we reinitialize the seed at the very end of all tests.