I am using R.NET library to call R functions in C#. I want to define or construct input in c# and pass it to the R command. I tried this :
engine.Evaluate("library(mirt)");
engine.Evaluate("x=mirt(Science,1)");
S4Object obj111 = engine.GetSymbol("x").AsS4();
engine.Evaluate("pl=x@Pl");
NumericVector pl_c= engine.GetSymbol("pl").AsNumeric();
int[] resp_c = new int [] {1,1,1,1};
engine.Evaluate("ff=fscores(x, response.pattern=resp_c)");
While trying this I came across an error which says,
"resp_c" not found.
Is there any way to pass the input to R functions from C# without writing that input explicitly in double quotes which is nothing but only R script.
Thank very much for you response in advance.