Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: Cant source another R script

$
0
0
Just for testing purposes I'm simply doing the following:
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?

Viewing all articles
Browse latest Browse all 1634

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>