You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second line of example code should not return FALSE, since
a) AESER is indeed a flag variable only containing "Y" and "N" values. Thus the assertion should return "AESER" as common assert_*() functions do
b) The expected behaviour of a common assert_*() function is to throw an informative error in case the assertion is not met. Our cardinal assert function assert_flag_variables() does not throw an error, but rather returns FALSE silently, allowing the script to proceed. This should be changed since the purpose of such a function is to force users to correct their inputs.
What happened?
Example:
adae <- random.cdisc.data::cadae
assert_flag_variables(adae, "AESER")
--> returns FALSEThe second line of example code should not return FALSE, since
a) AESER is indeed a flag variable only containing "Y" and "N" values. Thus the assertion should return "AESER" as common
assert_*()
functions dob) The expected behaviour of a common
assert_*()
function is to throw an informative error in case the assertion is not met. Our cardinal assert functionassert_flag_variables()
does not throw an error, but rather returnsFALSE
silently, allowing the script to proceed. This should be changed since the purpose of such a function is to force users to correct their inputs.sessionInfo()
Relevant log output
No response
The text was updated successfully, but these errors were encountered: