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

New Post: R 3.1.0 and RDotNet_1.5.10 dll but the REngine does not start

$
0
0
hello, tried a new sample console program(hello world) from latest onboarding guide. I have windows 8 with R.dotnet of 1.5.16 dll version that is referenced via nugget and R 3.1.0 installed in my system.

Code snippet
   using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RDotNet;
using RDotNet.NativeLibrary;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace helloworld
{
class Program
{
    static void Main(string[] args)
    {
        REngine.SetEnvironmentVariables(); // <-- May be omitted; next line would call it. 
      REngine engine = REngine.GetInstance(); 
      // A somewhat contrived but customary Hello World: 
      CharacterVector charVec = engine.CreateCharacterVector(new[] { "Hello, R world!, .NET speaking" }); 
      engine.SetSymbol("greetings", charVec); 
      engine.Evaluate("str(greetings)"); // print out in the console 
      string[] a = engine.Evaluate("'Hi there .NET, from the R engine'").AsCharacter().ToArray(); 
      Console.WriteLine("R answered: '{0}'", a[0]); 
      Console.WriteLine("Press any key to exit the program"); 
      Console.ReadKey(); 
      engine.Dispose(); 


    }
}
}

I am still get the same error message. I am unable to paste/attach a screenhsot here..

"The procedure entry point R_Cstackdir could not be located in the dynamic link library R.dll" with this call stack"

Viewing all articles
Browse latest Browse all 1634

Trending Articles



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