From murdoch at stats.uwo.ca  Fri Oct  2 16:50:26 2009
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Fri, 02 Oct 2009 10:50:26 -0400
Subject: [Rd] environment( seq.int ) is NULL
In-Reply-To: <4AC5F4D3.3030102@dbmail.com>
References: <4AC5F4D3.3030102@dbmail.com>
Message-ID: <4AC61332.7050907@stats.uwo.ca>

On 10/2/2009 8:40 AM, Romain Francois wrote:
> ... and also all objects that actually live in the .GenericArgsEnv 
> environment.
> 
>  > all( sapply( ls( .GenericArgsEnv ), function(.) 
> is.null(environment(.)) ) )
> [1] TRUE
> 
> This has the consequence preventing argsAnywhere to get the args of 
> seq.int.
> 
>  > argsAnywhere( seq.int )
> Error in exists(".packageName", envir = envir, inherits = FALSE) :
>    use of NULL environment is defunct
> 
> and consequently completion does not work
> 
>  > seq.int( <TAB>Error in exists(".packageName", envir = envir, inherits 
> = FALSE) :
>    use of NULL environment is defunct
> 
> I've tried a few things, but I don't understand the order in which 
> things are loaded in the zzz.R of base ...

seq.int isn't a closure, so it doesn't have an environment, any more 
than a numeric vector does.  So the problem here is with getAnywhere 
(which is called by argsAnywhere).  I'll see if I can fix it.

Duncan Murdoch



[Rd] environment( seq.int ) is NULL
Duncan Murdoch