Skip to content

get() promise to missing arg

1 message · Andreas Kersting

#
Hi,

Please consider the following:
[1] TRUE
Error in get("m", e) : argument "m" is missing, with no default

Although objects m and p are identical(), get() behaves differently for them (in R version 4.2.1). Is this intended?

I stumbled across this in the context of utils:::print.ls_str(), which fails when encountering a promise to the missing arg:
m : <missing>
p : Error in inherits(o, "error") : argument "o" is missing, with no default

Best,
Andreas