Re: [R] use of NULL environment is deprecated?

2006-07-11 Thread Duncan Murdoch
On 7/11/2006 6:59 PM, Patrick Connolly wrote:
> On Tue, 11-Jul-2006 at 06:41PM -0400, Duncan Murdoch wrote:
> 
> []
> 
> |> 
> |> options(warn=2) will convert warnings into errors, so traceback will work.
> |> 
> |> A common situation where I've seen that error is with binary saves from 
> |> earlier versions of R being loaded into current versions.  For example, 
> |> if you installed a package before, but didn't re-install it with 2.3.1, 
> |> or if you are reloading a workspace saved in an earlier version.
> 
> Thank you for the explanation.  In this case, it's the latter reason:
> the workspace comes from a different computer as well as a different
> version of R.
> 
> Will saving the objects anew overcome the problem?

Yes, it should, though there's a slight risk that someone might have 
meant NULL to mean an empty environment instead of the base environment. 
  This would be a bug with or without the change.

Duncan Murdoch

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] use of NULL environment is deprecated?

2006-07-11 Thread Patrick Connolly
On Tue, 11-Jul-2006 at 06:41PM -0400, Duncan Murdoch wrote:

[]

|> 
|> options(warn=2) will convert warnings into errors, so traceback will work.
|> 
|> A common situation where I've seen that error is with binary saves from 
|> earlier versions of R being loaded into current versions.  For example, 
|> if you installed a package before, but didn't re-install it with 2.3.1, 
|> or if you are reloading a workspace saved in an earlier version.

Thank you for the explanation.  In this case, it's the latter reason:
the workspace comes from a different computer as well as a different
version of R.

Will saving the objects anew overcome the problem?

(Thanks Sundar also.)

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___Patrick Connolly   
 {~._.~} Great minds discuss ideas
 _( Y )_Middle minds discuss events 
(:_~*~_:)Small minds discuss people  
 (_)-(_)   . Anon
  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] use of NULL environment is deprecated?

2006-07-11 Thread Sundar Dorai-Raj

Patrick Connolly wrote:
> ]> version
>_ 
> platform   x86_64-unknown-linux-gnu  
> arch   x86_64
> os linux-gnu 
> system x86_64, linux-gnu 
> status   
> major  2 
> minor  3.1   
> year   2006  
> month  06
> day01
> svn rev38247 
> language   R 
> version.string Version 2.3.1 (2006-06-01)
> 
> 
> I see in the NEWS file the line:
> o Use of NULL as an environment is deprecated and gives a warning.
> 
> Which duly happens.  I get warnings like this:
> 
>>Warning message:
> 
> use of NULL environment is deprecated
> 
> My problem is that I don't know what is being referred to.  A little
> birdie tells me that in later versions of R, those warnings will
> become errors so I need to work out where they're coming from before I
> can use later versions.
> 
> My question is: How does one work out which is being referred to by
> such a message?  The traceback() function is useful when failure
> occurs.  Is there an analagous way of looking into warnings?
> 
> TIA
> 

Hi, Patrick,

This will happen when you load a package that was created for an earlier 
version of R. If this is your own package, recreate the package using 
R-2.3.1. If it's a package on CRAN, then update.packages() should also 
do the trick.

HTH,

--sundar

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] use of NULL environment is deprecated?

2006-07-11 Thread Duncan Murdoch
On 7/11/2006 6:27 PM, Patrick Connolly wrote:
> ]> version
>_ 
> platform   x86_64-unknown-linux-gnu  
> arch   x86_64
> os linux-gnu 
> system x86_64, linux-gnu 
> status   
> major  2 
> minor  3.1   
> year   2006  
> month  06
> day01
> svn rev38247 
> language   R 
> version.string Version 2.3.1 (2006-06-01)
> 
> 
> I see in the NEWS file the line:
> o Use of NULL as an environment is deprecated and gives a warning.
> 
> Which duly happens.  I get warnings like this:
>> Warning message:
> use of NULL environment is deprecated
> 
> My problem is that I don't know what is being referred to.  A little
> birdie tells me that in later versions of R, those warnings will
> become errors so I need to work out where they're coming from before I
> can use later versions.
> 
> My question is: How does one work out which is being referred to by
> such a message?  The traceback() function is useful when failure
> occurs.  Is there an analagous way of looking into warnings?

options(warn=2) will convert warnings into errors, so traceback will work.

A common situation where I've seen that error is with binary saves from 
earlier versions of R being loaded into current versions.  For example, 
if you installed a package before, but didn't re-install it with 2.3.1, 
or if you are reloading a workspace saved in an earlier version.

Duncan Murdoch

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] use of NULL environment is deprecated?

2006-07-11 Thread Patrick Connolly
]> version
   _ 
platform   x86_64-unknown-linux-gnu  
arch   x86_64
os linux-gnu 
system x86_64, linux-gnu 
status   
major  2 
minor  3.1   
year   2006  
month  06
day01
svn rev38247 
language   R 
version.string Version 2.3.1 (2006-06-01)


I see in the NEWS file the line:
o   Use of NULL as an environment is deprecated and gives a warning.

Which duly happens.  I get warnings like this:
> Warning message:
use of NULL environment is deprecated

My problem is that I don't know what is being referred to.  A little
birdie tells me that in later versions of R, those warnings will
become errors so I need to work out where they're coming from before I
can use later versions.

My question is: How does one work out which is being referred to by
such a message?  The traceback() function is useful when failure
occurs.  Is there an analagous way of looking into warnings?

TIA

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___Patrick Connolly   
 {~._.~} Great minds discuss ideas
 _( Y )_Middle minds discuss events 
(:_~*~_:)Small minds discuss people  
 (_)-(_)   . Anon
  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html