Open bonifazi opened 2 hours ago
This seems could work:
assert_that(identical(class(ebv.tmp)[1], "data.frame"),
msg = "Input is not a pure data.frame (it might be a data.table or another structure).")
improve the error, return the class to the user.
Script: https://github.com/bonifazi/TuttiFrutti/blob/main/compute_LR_stats.R
if EBV partial and EBV whole are data.table the script returns:
Funny enough, the script gets stuck with no error message if bootstrap == T.
Two observations: 1) is.data.frame returns T on a data.table obj. this should be further improved as a check. 2) why bootstrap = F gives different error? confirm that some checks are not bypassed when bootstrap = F.