[chronojump] Fixed RDotNet on Linux GUI, maybe also windows



commit 7c1ac3b18f3bd14d4532b33b1630f51089460488
Author: Xavier de Blas <xaviblas gmail com>
Date:   Sun Feb 9 17:01:11 2014 +0100

    Fixed RDotNet on Linux GUI, maybe also windows

 rdotnet/R.NET/REngine.cs |    3 ++-
 src/gui/encoder.cs       |    8 +++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/rdotnet/R.NET/REngine.cs b/rdotnet/R.NET/REngine.cs
index b97c66a..3755ff6 100644
--- a/rdotnet/R.NET/REngine.cs
+++ b/rdotnet/R.NET/REngine.cs
@@ -220,7 +220,8 @@ namespace RDotNet
                        this.parameter = parameter ?? new StartupParameter();
                        this.adapter = new CharacterDeviceAdapter(device ?? DefaultDevice);
                        GetFunction<R_setStartTime>("R_setStartTime")();
-                       GetFunction<Rf_initialize_R>("Rf_initialize_R")(1, new[] { ID });
+                       ///GetFunction<Rf_initialize_R>("Rf_initialize_R")(1, new[] { ID });
+                       GetFunction<Rf_initialize_R>("Rf_initialize_R")(3, new[] { ID, "--quiet", "--vanilla" 
}); 
                        this.adapter.Install(this, this.parameter);
                        switch (Environment.OSVersion.Platform)
                        {
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index c4be36b..dec391e 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -1732,12 +1732,18 @@ public partial class ChronoJumpWindow
                        return true;
 
                Log.WriteLine("initializing rdotnet");
-               
+
+               //RDotNet.StartupParameter rsup = new RDotNet.StartupParameter();
+               //rsup.Interactive = false;
+               //rsup.Quiet = false;
+
                rengine = REngine.CreateInstance("RDotNet");
+               
                // From v1.5, REngine requires explicit initialization.
                // You can set some parameters.
 
                try {
+                       //rengine.Initialize(rsup);
                        rengine.Initialize();
                } catch {
                        return false;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]