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

Peter Meilstrup
2013-08-15T15:11:30Z

On Thu, Aug 15, 2013 at 5:59 AM, Simon Urbanek
<simon.urbanek@r-project.org>wrote:

> 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 the 'expr' argument in the environment
specified
 by 'envir' and returns the computed value.

So, does "eval" perform one round of evaluation, or two? Does
"evaluates
[some] argument" refer to the ordinary process of obtaining the
argument's
value value, or to the feeding of that value back to the evaluator? Does
this "evaluation" take place in the environment passed as argument, or
the
calling environment?

I'm familiar with what 'eval' actually does, but its description in
the man
page is incoherent.

Peter

	[[alternative HTML version deleted]]