Exception from HRESULT: 0x80040013: when Integrating R with C#:

前端 未结 2 522
你的背包
你的背包 2020-12-22 08:40

I am trying to interface R with C# web application.I tried many solutions being provided but couldn\'t get it through. Error I am getting is: Exception from HRESULT: 0x80040

2条回答
  •  失恋的感觉
    2020-12-22 09:16

    I believe R.NET is a much better way to access R functionality from C#. It all runs in-process and so doesn't require an external R process to be running.

    If you install the NuGet package, you will get version 1.5. This incorporates some memory management fixes I made that address most of the crashes people have reported. As Dieter points out, we use R.NET extensively via the F# RProvider, and it is extremely stable with the latest version. The RProvider also comes with a wrapper generator that generates wrapper functions for R functions which can be used from C#. So for example you could call the plot function from C# as R.plot(...params...). And you get Intellisense.

提交回复
热议问题