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
Calling lengths(sq) results in calling default implementation of lengths instead of method lengths.sq. lengths is not a common generic function, but an internal generic, which may be the reason why it fails to work correctly.
The text was updated successfully, but these errors were encountered:
The reason for it is simple: lengths is, indeed, internal generic method, but in S4, not S3. S4 method should be written in order to reach expected behaviour.
Even after implementing S4 method, it does not dispatch as expected, contrary to common sense. Temporary solution is our own function get_sq_lengths() implemented in 63739a3
Calling
lengths(sq)
results in calling default implementation oflengths
instead of methodlengths.sq
.lengths
is not a common generic function, but an internal generic, which may be the reason why it fails to work correctly.The text was updated successfully, but these errors were encountered: