[Rprotobuf-yada] Forget my last 2 messages

Murray Stokely mstokely at google.com
Tue Feb 5 19:10:41 CET 2013


I have seen exactly this mistake many tines at Google. Probably we should
make it provide a more user friendly error when add on a descriptor is
called

Murray
On Feb 5, 2013 10:08 AM, "David Ibarra Gómez" <dibarra at aqualogy.net> wrote:

> I was using the same name for a protocol buffer message and the R object.
>
> So if I use "zectores" rather then "sectores" it works, even using "add"
> rather than "list".
>
> zectores <-new(explotacion,nombre="SB")
> for(i in conjunto){
>         zectores$add("sectores",new(sector,
>                 nombre=as.character(gerencias[i,]$NOM.SECTOR),
>                 nombre_abreviado=as.character(gerencias[i,]$ABREVIAT),
>                 gerencia = as.character(gerencias[i,]$GERENCIA),
>                 activo = as.numeric(gerencias[i,]$codi),
>                 literal = as.character(gerencias[i,]$LITERAL.FUNCI)
>                 )
>         )
> }
>
> Also during test process, I changed the protocol definition, but I think
> It would work in the other case also:
>
> message sector{
>         message caudal{
>         required uint32 id = 1;
>         required string signo =2;
>         optional string s_id =3;
>         }
>
>         required string nombre=1;
>         required string nombre_abreviado=2;
>         required string gerencia = 3;
>         required uint32 activo=4;
>         required string literal = 5;
>         repeated caudal caudales = 6;
> }
> message explotacion{
>         required string nombre =1;
>         repeated sector sectores =2;
> }
>
>
>
> David Ibarra Gomez
>
>
> -----Mensaje original-----
> De: Dirk Eddelbuettel [mailto:edd at debian.org]
> Enviado el: martes, 05 de febrero de 2013 18:54
> Para: David Ibarra Gómez
> CC: Rprotobuf-yada at lists.r-forge.r-project.org
> Asunto: Re: [Rprotobuf-yada] Forget my last 2 messages
>
>
> On 5 February 2013 at 18:35, David Ibarra Gómez wrote:
> | I feel like it's monday morning.
>
> :)
>
> | Sorry for the stupid questions
>
> No worries.  So what was the problem?
>
> Dirk
>
> --
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
>
> Disclaimer: http://disclaimer.aqualogy.net/
> _______________________________________________
> Rprotobuf-yada mailing list
> Rprotobuf-yada at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rprotobuf-yada
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rprotobuf-yada/attachments/20130205/45772a18/attachment.html>


More information about the Rprotobuf-yada mailing list