Just for testing purposes I'm simply doing the following:
"{Error in file(file, "r", encoding = encoding) : 4 arguments passed to .Internal(file) which requires 5}"
Any ideas?
StringWriter sw = new StringWriter();
Console.SetOut(sw);
try
{
return Engine.Evaluate("source(file.path(\"C:/Users/me/Desktop/RDotNetTest/test.R\"))");
}
catch (ParseException)
{
throw new Exception(sw.ToString());
}
my R script is very simple and is just :a <- c(1,2,3)
Its throwing the following exception:"{Error in file(file, "r", encoding = encoding) : 4 arguments passed to .Internal(file) which requires 5}"
Any ideas?