ctsit / redcapcustodian

Simplified, automated data management on REDCap systems
Other
12 stars 6 forks source link

Add randomization management #99

Closed pbchase closed 1 year ago

pbchase commented 1 year ago

To better understand what I did in tests/testthat/, see https://r-pkgs.org/testing-design.html The single most important message is to run devtools::load_all() before interactive testing.

The complex functions in randomizations.R have tests. The two trivial ones do not.

I am conflicted about providing a project XML file for testing in a real REDCap. I could, but the randomization configuration won't import. You'll still have to build it manually. I could provide allocation tables, but the randomization configuration has to be just right for them to load. I'm not sure there is a lot of ROI. I've provided a coordinated set of files in randomization_project_example.zip It contains a project XML, a screenshot of the configuration, and randomization tables.

pbchase commented 1 year ago

I'm working on a fix for the failed test. I kind of didn't like the code that caused the failure. The testing failure is forcing my hand