jonmcalder / refactor

:bookmark: Better factor handling for R
https://jonmcalder.github.io/refactor/
MIT License
3 stars 0 forks source link

uniform call. argument for warnings / errors #17

Open lorenzwalthert opened 8 years ago

lorenzwalthert commented 8 years ago

Not sure whether it makes more sense to display where the error / warning occurred or not. I guess in interactive usage, it is pointless, but if you wrap for example cfactor in another function, it might be helpful?

jonmcalder commented 8 years ago

Agreed - where possible one should always make an effort to provide specific context for warnings and/or errors. Anything in particular you are referring to here or is it a more general comment?

lorenzwalthert commented 8 years ago

more general. But I don't know how to create the warnings dependent on whether for example cfactor was called interactively or from within a function...

lorenzwalthert commented 8 years ago

Also how to display the warning: E.g. when listing values: separate by comma or, new line?