Skip to main content

check_s4_generic_collisions

Function check_s4_generic_collisions 

Source
fn check_s4_generic_collisions(parsed: &ParsedImpl) -> Result<()>
Expand description

Two instance methods of one S4 impl block that dispatch through the same generic emit two setMethod("<generic>", "<Class>", ...) calls with the same signature, and the second silently replaces the first. The default generic follows the R method name (s4_<r_name>), so r_name = "x" next to a method x is one way to get there; two equal s4(generic = "...") overrides are another.