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

error handling select #643

Closed
momeara opened this issue Sep 29, 2014 · 1 comment
Closed

error handling select #643

momeara opened this issue Sep 29, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@momeara
Copy link

@momeara momeara commented Sep 29, 2014

Would it be possible to give a more informative error message here?

> z <- "abcdef"
> select(data_frame(x=c(1,2,3)), z)
Error in abs(ind[ind < 0]) :
   non-numeric argument to mathematical function

Also for

> data_frame(x=c(1,2,3)) %>% filter(F) %>% select(x)
Error in (function (classes, fdef, mtable) :
  unable to find an inherited method for function ‘select’ for signature ‘"data.frame"’
@hadley hadley added the bug label Sep 30, 2014
@hadley hadley added this to the 0.3.1 milestone Sep 30, 2014
@hadley hadley self-assigned this Sep 30, 2014
@urbandw
Copy link

@urbandw urbandw commented Nov 14, 2014

I get this same error when the raster package is loaded. One workaround is data_frame %>% dplyr::select(x), but I don't want to have to restart R and change package loading order every time I happen to need a package with a "select" function that clashes with dplyr's. Will the bug fix address this?

@hadley hadley closed this in a76a0c2 Nov 26, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jun 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants