Re: [R] proto naming clash?

From: Charilaos Skiadas <>
Date: Thu, 15 May 2008 17:31:44 -0400

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:

So you should just need to update the proto package.

> Thanks.

Haris Skiadas
Department of Mathematics and Computer Science Hanover College mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 16 May 2008 - 13:37:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 16 May 2008 - 14:30:42 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive