Is there any way to call R function by using R.NET from C#?
I'm using Visual Studio 2017 and installed the latest version of R.NET. I had tried to use the codesearch from Google which using REngine.SetDllDirectory but Visual Studio show out an error:
<'REngine' does not contain a definition for 'SetDllDirectory'>.
Given there is a COM interface to R, you can use C#'s COM interop to control it.
See this article for more details: http://www.codeproject.com/KB/cs/RtoCSharp.aspx