Is it possible to have loading a package modify base R functions, like redefining warnings? How? For example:
y = "string"
as.numeric(y)
[1] NA
Warning message:
NAs introduced by coercion
The warning message tells something is not quite write, but it doesn't make it clear what is wrong, specially for begginers. How can I achieve something like this:
library(package)
y = "string"
as.numeric(y)
[1] NA
Warning message:
Can't convert character (example: "string") to numeric.