Closed jakob-wirbel closed 3 years ago
Hum... this looks like a bug in plyr actually. Specifically from this line in llply...
According to the documentation one can specify the progress bar either "as name, or you can create the progress bar object yourself if you want more control over its apperance." I'm using the latter but clearly that's not the case here, and one cannot create the progress bar object ourself with those options.
I'm not sure what to do at the moment. Ideally one should fix plyr, but it's unlikely to happen as the project is no longer maintained. Or I could drop the customization of the progress bar...
An workaround is to check if those environment values are set, and dumb down the progress bar specifically in those cases. Sounds a bit hacky but it should work for now. Can you confirm?
I opened a PR with plyr. Who knows, maybe it gets fixed.
Meanwhile do you have a way to test the workaround, or should I proceed releasing a new version of pROC with the fix?
Hi @xrobin
Thanks so much for the fast response! 👍
I checked it on my system and it works with the workaround, but I guess that this is indeed a plyr
problem.
Hi all, thanks for the awesome package, first of all 👍
I am using it as a dependency in my own package (SIAMCAT), but I got an error from the
pROC
package lately.Description
Recently Bioconductor changed what would be considered an error during package build. The coercion to length 1 when doing a logical comparison has been changed to throw an error, not only a warning (see also here).
This means that when I try to get the confidence interval for the sensitivity of a ROC curve, I get an error generated by the progress bar.
Reproduction
Here is a random-number example:
This results in the error:
I guess it's a problem with the progress bar which is imported through
plyr
. For now, I have removed the CI option in how my package usespROC
, but it would be amazing to add it back in.Do you think that there would be a way to fix this behavior easily?
Thank you very much! :)