There are some independently programmed functions for validating gsDesign under tests/.
They were previously stored in tests/gsDesign_independent_code.R.
This PR moves this file to tests/testthat/helper.R and removes all source() calls from individual tests.
This follows the testthat best practices described in R Packages. Objects or functions defined in a helper file are available to all the tests, without the need to source().
There are some independently programmed functions for validating gsDesign under
tests/
.They were previously stored in
tests/gsDesign_independent_code.R
.This PR moves this file to
tests/testthat/helper.R
and removes allsource()
calls from individual tests.This follows the testthat best practices described in R Packages. Objects or functions defined in a helper file are available to all the tests, without the need to
source()
.