I like to use options(warn=1) in my scripts. But after calling drm() the value is set to 0. That's because drm() modifies it and this change persists after the function exits. It is not very nice to mess with the users options. Please cache them and reset them with on.exit, thank you.
I like to use
options(warn=1)
in my scripts. But after callingdrm()
the value is set to 0. That's becausedrm()
modifies it and this change persists after the function exits. It is not very nice to mess with the users options. Please cache them and reset them withon.exit
, thank you.Example: