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

Update list of CRAN packages that export roc or auc functions. #31

Closed
3 of 4 tasks
xrobin opened this issue May 11, 2018 · 2 comments
Closed
3 of 4 tasks

Update list of CRAN packages that export roc or auc functions. #31

xrobin opened this issue May 11, 2018 · 2 comments

Comments

@xrobin
Copy link
Owner

xrobin commented May 11, 2018

https://github.com/xrobin/pROC/wiki/FAQ---Frequently-asked-questions#the-functions-are-giving-me-weird-error-messages-i-dont-understand

  • Write a script that creates an updated list
  • Flag packages exporting only roc or only auc function
  • Flag packages exporting a non-generic auc function
  • Flag packages creating objects of class roc or auc
@xrobin
Copy link
Owner Author

xrobin commented Jun 4, 2018

It seems that more than just a generic function is needed. For instance, precrec has an auc function but pROC methods get masked anyway:

library(pROC)
data(aSAH)
library(precrec)
auc(roc(aSAH$outcome, aSAH$s100b))
Error in auc.default(roc(aSAH$outcome, aSAH$s100b)) : 
  An object of unknown class is specified
3: stop("An object of unknown class is specified")
2: auc.default(roc(aSAH$outcome, aSAH$s100b))
1: auc(roc(aSAH$outcome, aSAH$s100b))

For some reason the methods are gone. Maybe exporting auc is resetting them?

methods("auc")
[1] auc.aucs*    auc.default*

If so listing generics vs non generics is irrelevant.

@xrobin
Copy link
Owner Author

xrobin commented Jun 19, 2018

Wiki updated, script for future updates available in inst/extra/sos_clashes.R.

xrobin added a commit that referenced this issue Jun 19, 2018
@xrobin xrobin closed this as completed Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant