Closed jdblischak closed 8 months ago
Thanks for applying the function factory, @jdblischak ! Before the merge, could you please introduce us to the changes and new syntax tomorrow?
Overall looking good. Let's try follow the testing best practices in designing your test suite:
library(gsDesign2)
call and qualify namespaces explicitly.Before the merge, could you please introduce us to the changes and new syntax tomorrow?
@LittleBeannie Yes, of course. I'll explain everything in today's meeting. Also note that this morning I also converted the maxcombo()
interface to accept vectors instead of quoted function expressions.
Overall looking good. Let's try follow the testing best practices in designing your test suite:
@nanxstats I switched to gsDesign2::
and created helper functions defined in a separate helper file. Please let me know if you'd like me to make any further modifications.
Follow-up to #195. Closes #196.
This PR makes the following updates:
get_analysis_date()
expressions that then need to be evaluated, the argumentcutting
ofsim_gs_n()
now accepts a list of cutting functions. These functions are created by the function factorycreate_cutting()
test
ofsim_gs_n()
, only the test function itself is passed, and any further arguments are passed to the testing function via...
Note that I didn't fully convert
maxcombo()
. I don't think I fully understand the purpose of this function. Its arguments are quoted functions, but they are never evaluated. Instead their arguments forrho
andgamma
are extracted and passed tofh_weight()
. Is there any reason thatmaxcombo()
couldn't instead just receive the vectors ofrho
andgamma
directly? And why ismaxcombo()
needed whenfh_weight()
already exists?