1
Vote

method call fails is the object returned is a struct

description

        public struct SampleClimate
        {
            public double[] Rainfall { get; internal set; }
            public double[] Evapotranspiration { get; internal set; }
            public double[] Runoff { get; internal set; }
        }
        public static SampleClimate GetSampleClimate()
> data <- clrCallStatic("EnvModellingSample.DataHandling", "GetSampleClimate")
Error in (function ()  : Failure in rclr_ms_get_current_object_direct
Error in clrCallStatic("EnvModellingSample.DataHandling", "GetSampleClimate") : 
  Type:    RDotNet.EvaluationException
Message: Error in (function ()  : Failure in rclr_ms_get_current_object_direct

comments