static void Main(string[] args) { //Create R.NET instance REngine engine = REngine.GetInstance(null, true, null, null); engine.Initialize(); Console.WriteLine("Is engine running? " + engine.IsRunning); Console.WriteLine("Engine ID: " + engine.ID); ExportingRDotNetObjs.Start(engine); ImportingRDotNetObjs.Start(engine); engine.Dispose(); Console.WriteLine("\nFinished"); Console.ReadKey(); }
static void Main(string[] args) { //Create R.NET instance REngine engine = REngine.CreateInstance("RDotNet"); engine.Initialize(); Console.WriteLine("Is engine running? " + engine.IsRunning); Console.WriteLine("Engine ID: " + engine.ID); ExportingRDotNetObjs.Start(engine); ImportingRDotNetObjs.Start(engine); //Close R.NET connection //engine.Close(); Console.WriteLine("\nFinished"); Console.ReadKey(); }