On Mon, 21 Oct 2013, Jeroen Ooms wrote:
When a variable is assigned the empty symbol, looking up the variable
results in an error message that looks like a function call:
foo <- as.list(lm)$data
ls()
[1] "foo"
foo
Error: argument "foo" is missing, with no default
get("foo")
Error in get("
Sorry, I meant I think it is R_MissingArg, not R_UnboundValue. Again though
this is just a guess (though somewhat easily tested).
~G
On Mon, Oct 21, 2013 at 1:30 PM, Gabriel Becker wrote:
> Jeroen,
>
> The problem seems to be that you are grabbing a symbol that doesn't have a
> name. I suspect
Jeroen,
The problem seems to be that you are grabbing a symbol that doesn't have a
name. I suspect its R_UnboundValue, but I don't have time to check right
now. Anyway, take a look at this:
> .Internal(inspect(as.list(lm)$data))
@1cada98 01 SYMSXP g1c0 [MARK,NAM(2)] "" (has value)
And compare it
When a variable is assigned the empty symbol, looking up the variable
results in an error message that looks like a function call:
> foo <- as.list(lm)$data
> ls()
[1] "foo"
> foo
Error: argument "foo" is missing, with no default
> get("foo")
Error in get("foo") : argument "foo" is missing, with n