The namespace RDotNet could not be found

I'm trying to use R with C#. I'm using Unity and MonoDevelop on the C# side and I've R version 3.2.1. I've tried my best to follow instructions here: http://jmp75.github.io/rdotnet/getting_started/

But I'm stuck. Here's what I've done

  • download nuget.exe, put it in a folder already in PATH.
  • open CMD.exe
  • run nuget install R.NET.Community

If I try to reinstall R.NET.Community with the same command above, I got the message that it is already installed (which is good I guess).

My question : what now? I tried to run the RDotNet namespace, but it's not recognized. Obviously I need to set up something else, but I do not know where and what. Any lead would be appreciated!

Jon Skeet
people
quotationmark

I wouldn't expect just running the nuget install to add a reference into your project - the nuget installer is basically just downloading the package for you.

You could manually add a reference in your project to the relevant assembly file (.dll) that has been downloaded. However, it would be better to use a package manager within MonoDevelop. If you're using MonoDevelop 3.x or 4.5, you should use the NuGet MonoDevelop add-in and use that to manage the NuGet packages for your project. MonoDevelop 5.x has a NuGet package manager built in, apparently.

people

See more on this question at Stackoverflow