[Rprotobuf-yada] Forget my last 2 messages
David Ibarra Gómez
dibarra at aqualogy.net
Tue Feb 5 19:08:00 CET 2013
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/
More information about the Rprotobuf-yada
mailing list