This is perhaps an unusual question. I want to know if it's possible to create an object y in R for which x == y always evaluates to TRUE, or possible NA (e.g. if x is NA), whatever the value of x.
If necessary, y could also be a function call y().
The only way I can think of approaching such a problem is to use sys.call() or sys.calls(), but so far I've had no luck with that approach.
NB, I have no idea why you would need this behaviour, I'm just interested to know if it can be done.