[chronojump] trying RDotNet
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] trying RDotNet
- Date: Mon, 14 Oct 2013 14:44:21 +0000 (UTC)
commit 2ba7b60a90cd18f0b369873124f97e81e0f5bf26
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Oct 14 16:44:07 2013 +0200
trying RDotNet
src/chronojump.cs | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/chronojump.cs b/src/chronojump.cs
index 29ab0c5..597353c 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -30,6 +30,8 @@ using System.Diagnostics; //Process
using System.Collections; //ArrayList
+using RDotNet;
+
public class ChronoJump
{
SplashWindow splashWin;
@@ -88,6 +90,16 @@ public class ChronoJump
Environment.Exit(1);
}
+ string rPackagePath="/usr/lib/R";
+ bool initResult = REngine.SetDllDirectory(rPackagePath);
+ if (!initResult)
+ throw new Exception(@"R Initialization Failed");
+
+ REngine engine = REngine.CreateInstance("tsEngine");
+
+ if (engine == null)
+ throw new Exception(@"REngine Creation Failed");
+
Catalog.Init("chronojump",System.IO.Path.Combine(Util.GetPrefixDir(),"share/locale"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]