Skip to content

environment( seq.int ) is NULL

2 messages · Romain Francois, Duncan Murdoch

#
... 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 ...

Romain
#
On 10/2/2009 8:40 AM, Romain Francois wrote:
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