Re: [Rd] Assigning empty symbol to variable.

2013-10-21 Thread luke-tierney
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("

Re: [Rd] Assigning empty symbol to variable.

2013-10-21 Thread Gabriel Becker
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

Re: [Rd] Assigning empty symbol to variable.

2013-10-21 Thread Gabriel Becker
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

[Rd] Assigning empty symbol to variable.

2013-10-21 Thread Jeroen Ooms
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