sloop icon indicating copy to clipboard operation
sloop copied to clipboard

S language OOP ⛵️

Results 10 sloop issues
Sort by recently updated
recently updated
newest added

The generic should dispatch in cbind.default, why didn't it happen? The output in s3_dispatch() is correct, as I would expect. But that didn't happen when I use the generic. See...

bug

(Probably due to a change in R 4.0; I discovered this when solving the regarding exercise in Adv R) ``` r # Output in R 4.0.3 x => t.test #>...

bug

If I refer to a function via a variable, the `class` column of `s3_methods_generic` isn't what I'd expect. ``` this_func Warning in .S3methods(generic.function, class, envir): generic function #> 'this_func' dispatches...

bug

``` r sloop::s3_dispatch(vctrs::vec_arith("+", 2, 3)) #> Error: Mapped vectors must have consistent lengths: #> * `.x` has length 3 #> * `.y` has length 2 ``` Not sure if it...

bug

Is the fact that the second line generates an error a bug or a feature? I'm not sure how to interpret this... ``` ftype(all.equal) s3_get_method(all.equal(1, 1)) ```