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.
To better understand what I did in
tests/testthat/
, see https://r-pkgs.org/testing-design.html The single most important message is to rundevtools::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.