Hello,
This is the part of my code I added after you explain me how to initialize and close :
This is the part of my code I added after you explain me how to initialize and close :
Public Sub New()
InitializeComponent()
Dim envPath = System.Environment.GetEnvironmentVariable("PATH")
Dim rBinPath = "C:\Program Files\R\R-3.0.0\bin\i386"
System.Environment.SetEnvironmentVariable("PATH", envPath + Path.PathSeparator + rBinPath)
REngine.SetDllDirectory("C:\Program Files\R\R-3.0.0\bin\i386")
engine = REngine.CreateInstance("RDotNet")
engine.EagerEvaluate("library(drc)")
End Sub
Public Sub close_app() Handles Me.FormClosed
engine.Close()
End Sub
But it still doesn't work, is there a mistake ?