[Rd] environment( seq.int ) is NULL

Duncan Murdoch murdoch at stats.uwo.ca
Fri Oct 2 16:50:26 CEST 2009


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



More information about the R-devel mailing list