Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in s3_dispatch #28

Open
Tazinho opened this issue Dec 31, 2020 · 1 comment
Open

Bug in s3_dispatch #28

Tazinho opened this issue Dec 31, 2020 · 1 comment
Labels
bug an unexpected problem or unintended behavior

Comments

@Tazinho
Copy link

Tazinho commented Dec 31, 2020

(Probably due to a change in R 4.0; I discovered this when solving the regarding exercise in Adv R)

# Output in R 4.0.3
x <- structure(1:10, class = "test")

sloop::s3_dispatch(t(x))
#> => t.test
#>  * t.default
t(x)
#>      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
#> [1,]    1    2    3    4    5    6    7    8    9    10
#> attr(,"class")
#> [1] "test"
t.test(x)
#> 
#>  One Sample t-test
#> 
#> data:  x
#> t = 5.7446, df = 9, p-value = 0.0002782
#> alternative hypothesis: true mean is not equal to 0
#> 95 percent confidence interval:
#>  3.334149 7.665851
#> sample estimates:
#> mean of x 
#>       5.5

Created on 2020-12-31 by the reprex package (v0.3.0)

@hadley hadley added the bug an unexpected problem or unintended behavior label Oct 30, 2023
@tslumley
Copy link

tslumley commented Apr 9, 2024

I came here to report this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants