Closed elong0527 closed 2 years ago
I guess it is related to how the first argument x
is processed in type()
: https://github.com/iqis/Q7/blob/master/R/core.R#L21.
deparse(substitute())
uses non-standard evaluation to capture the expression or function as character strings, so that you cannot use a variable there but have to write the actual content. This is the same behavior as in library()
.
adv-r suggested providing an escape hatch or standard evaluation version but I'm not sure if it's worth it here.
Thanks @nanxstats. You are spot-on. This will be fixed.
May I ask why this definition is OK
But below definition result in error.
@nanxstats