I try to use rClr. I found out how to give "normal" (the basic types) parameters into a clr function. i'am also able to retrive "normal" values from the function.
The problem:
bringing many data e.g. a dataframe (with many entries per frame) into a c#-function.
Sampledataframe for a parameter
namerecord1 <- data.frame(id=1, name='A', lastname="a", coordinate=1.23456)
namerecord2 <- data.frame(id=2, name='B', lastname="b", coordinate=2.4560789)
argument <- rbind(namerecord1, namerecord2)
retrieving an array of coustumclasses from the function
Samplecode c# for the returnvalue
List<NameRecord> tmpResult = new List<NameRecord>(3);
tmpResult.Add(new NameRecord { Name = "ASDF", LastName = "asdf", Id = 1, DoubleValue = 1.456789 });
tmpResult.Add(new NameRecord { Name = "QWER", LastName = "qwer", Id = 2, DoubleValue = 2.456789 });
tmpResult.Add(new NameRecord { Name = "YXCV", LastName = "yxcv", Id = 3, DoubleValue = 3.456789 });
return tmpResult.ToArray();
What i tried
result <- clrCall(object, 'SetArgument', argument)
but in the given parameter is only an object -Array with four null values.
And at retrieving i get an object which looks really complicated. Maybe there is a way to transform it in a dataframe someway?