From murdoch.duncan at gmail.com  Fri Jun 28 19:56:26 2013
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Fri, 28 Jun 2013 13:56:26 -0400
Subject: [Rd] problem with eval(...,
 parent.frame(1L)) when package is not loaded
In-Reply-To: <loom.20130628T183725-282@post.gmane.org>
References: <51CD07D9.7070201@ufl.edu> <51CD66B7.60303@gmail.com>
	<loom.20130628T183725-282@post.gmane.org>
Message-ID: <51CDCE4A.6010407@gmail.com>

On 28/06/2013 12:42 PM, Ben Bolker wrote:
> Duncan Murdoch <murdoch.duncan <at> gmail.com> writes:
>
> >
>
> [snip]
> >
> > The other choice is to use the explicit ::, i.e.
> >
> > mc[[1]] <- quote(lmer::lFormula)
> >
> > This would be the solution I'd prefer, but you seem to have some
> > prejudice against :: .
> >
>
>    I just thought that the whole point of using the machinery of
> namespaces, environments, etc., was that we shouldn't need to
> tell R explicitly what environment we were working in ...

And usually it works, just not always when you do surgery on 
expressions.  The snipped version worked, for instance.

Duncan Murdoch



[Rd] problem with eval(..., parent.frame(1L)) when package is not loaded
Duncan Murdoch