[chronojump] RDotNet starts on Win without needing R installed



commit 6e66d8c5ca62ccfda498eff09d25f7b5582b448a
Author: Windows Build <windows chronojump org>
Date:   Mon Mar 3 17:49:07 2014 +0100

    RDotNet starts on Win without needing R installed

 src/chronojump.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/chronojump.cs b/src/chronojump.cs
index 239c43f..3de0289 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -95,6 +95,11 @@ public class ChronoJump
                
                        System.Environment.SetEnvironmentVariable("PATH", newPath);
                        Log.WriteLine("path:" + System.Environment.GetEnvironmentVariable("PATH"));
+                       
+                       //use this because we don't want to look at the registry
+                       //we don't want to force user to install R
+                       Environment.SetEnvironmentVariable ("R_HOME", baseDirectory);
+                       Log.WriteLine("R_HOME:" + baseDirectory);
                } else {
                        rBinPath = @"/usr/lib/R/lib";
                        Environment.SetEnvironmentVariable ("R_HOME", @"/usr/lib/R");


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