Re: [R] proto naming clash?

2008-05-15 Thread Gabor Grothendieck
On Thu, May 15, 2008 at 5:31 PM, Charilaos Skiadas <[EMAIL PROTECTED]> wrote:
>
> On May 15, 2008, at 1:24 PM, David Katz wrote:
>
>>
>> Trying to learn Proto. This threw me:
>>
>> #startup r...

 library(proto)
>>>
>>> a <- proto(x=10)
>>> a$x
>>
>> [1] 10
>>>
>>> x <- proto(x=100)
>>> x$x
>>
>> Error in get("x", env = x, inherits = TRUE) : invalid 'envir' argument
>>>
>>
>> Do I simply need to be careful to name proto objects and proto components
>> uniquely? Is this the desired behavior for proto objects?
>
> The problem was just with naming a proto object "x", it has nothing to do
> with the names of its components. It has been fixed in the newer version:
>
> http://tolstoy.newcastle.edu.au/R/e4/help/08/01/0205.html
>
> So you should just need to update the proto package.
>
>> Thanks.
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College

Also notice the "proto bugs" section of the home page:

http://r-proto.googlecode.com

where this is mentioned. You can get the development version
from there too.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] proto naming clash?

2008-05-15 Thread Charilaos Skiadas


On May 15, 2008, at 1:24 PM, David Katz wrote:



Trying to learn Proto. This threw me:

#startup r...

library(proto)

a <- proto(x=10)
a$x

[1] 10

x <- proto(x=100)
x$x

Error in get("x", env = x, inherits = TRUE) : invalid 'envir' argument




Do I simply need to be careful to name proto objects and proto  
components

uniquely? Is this the desired behavior for proto objects?


The problem was just with naming a proto object "x", it has nothing  
to do with the names of its components. It has been fixed in the  
newer version:


http://tolstoy.newcastle.edu.au/R/e4/help/08/01/0205.html

So you should just need to update the proto package.


Thanks.


Haris Skiadas
Department of Mathematics and Computer Science
Hanover College

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] proto naming clash?

2008-05-15 Thread David Katz

Trying to learn Proto. This threw me:

#startup r...
> > library(proto)
> a <- proto(x=10)
> a$x
[1] 10
> x <- proto(x=100)
> x$x
Error in get("x", env = x, inherits = TRUE) : invalid 'envir' argument
> 

Do I simply need to be careful to name proto objects and proto components
uniquely? Is this the desired behavior for proto objects?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/proto-naming-clash--tp17258403p17258403.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.