keaven / gsDesign

Group sequential design for clinical trials
https://keaven.github.io/gsDesign/
GNU General Public License v3.0
51 stars 14 forks source link

Move independently programmed functions for validation to `helper.R` #130

Closed nanxstats closed 9 months ago

nanxstats commented 9 months ago

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().