Open mjskay opened 9 months ago
Ah, I also had to adjust the definition of asis_restore()
to pass some tests --- it now prevents "AsIs"
from being added multiple times. Although it's worth noting that its implementation is now exactly the same as I()
, so it could perhaps be replaced with that function if desired.
I ran into a weird ggplot2 bug when using
I(...)
with some aesthetics that I eventually traced back to a bug in the implementation ofvec_restore.AsIs()
. It currently applies the"AsIs"
class to the proxy of the wrapped type without actually restoring the underlying type. I believe this is a simple fix.Before:
Created on 2023-12-21 with reprex v2.0.2
After:
Created on 2023-12-21 with reprex v2.0.2