Re: [Rd] Inconsistency between eval and withVisible (with patch)

2013-08-15 Thread peter dalgaard
On Aug 15, 2013, at 01:46 , Gabriel Becker wrote: R-team, The $value element of the return value of *withVisible* does not agree with the return value of *eval* when *withVisible* is passed a variable (symbol) containing an expression object or anonymous code/expressions which generates

Re: [Rd] Inconsistency between eval and withVisible (with patch)

2013-08-15 Thread Peter Meilstrup
I agree that the present behavior of withVisible is the Right Thing, but the documentation is confusing. The documentation claims that withVisible evaluates an expression. This may capture an inside view of how the .Internal function is implemented, but is nonsense from the R user's standpoint,

Re: [Rd] Inconsistency between eval and withVisible (with patch)

2013-08-15 Thread Gabriel Becker
On Wed, Aug 14, 2013 at 11:14 PM, Peter Meilstrup peter.meilst...@gmail.com wrote: I agree that the present behavior of withVisible is the Right Thing, but the documentation is confusing. The documentation claims that withVisible evaluates an expression. This may capture an inside view of

Re: [Rd] Inconsistency between eval and withVisible (with patch)

2013-08-15 Thread Simon Urbanek
On Aug 15, 2013, at 3:06 AM, Gabriel Becker wrote: On Wed, Aug 14, 2013 at 11:14 PM, Peter Meilstrup peter.meilst...@gmail.com wrote: I agree that the present behavior of withVisible is the Right Thing, but the documentation is confusing. The documentation claims that withVisible

Re: [Rd] Inconsistency between eval and withVisible (with patch)

2013-08-15 Thread Peter Meilstrup
Part of the confusion actually comes from the overspecificity of the documentation. When the actual majority of the verbiage in a manual page is given to how a function evaluates its argument, one tends to infer (by the flouting of Grice's maxim of quantity) that this term evaluation refers to

Re: [Rd] Inconsistency between eval and withVisible (with patch)

2013-08-15 Thread Peter Meilstrup
On Thu, Aug 15, 2013 at 5:59 AM, Simon Urbanek simon.urba...@r-project.orgwrote: Note that this is documented very explicitly: evalÂ’ evaluates its first argument in the current scope before passing it to the evaluator But the same man page also describes eval like this: 'eval' evaluates

[Rd] Inconsistency between eval and withVisible (with patch)

2013-08-14 Thread Gabriel Becker
R-team, The $value element of the return value of *withVisible* does not agree with the return value of *eval* when *withVisible* is passed a variable (symbol) containing an expression object or anonymous code/expressions which generates an expression object when evaluated (such as calls to