A quick start guide for using R.NET
This documentation is for R.NET 1.5.22 or above, though you may be able to use it back to 1.5.16.
This repository contains C# code for new users of R.NET. Note that the github repository of this quick start guide may be transient and lead to more stable documentation on the R.NET site down the track.
The project files use NuGet packages to manage references to R.NET. More detailed instructions are available at the main R.NET documentation page
Alternately the .csproj files can have references to pre-compiled .NET binaries RDotNet.dll and RDotNet.NativeLibrary.dll, expected to be in the folder named “Binaries”. You can:
The Csharp project files contain the following references by default:
<Reference Include="RDotNet">
<HintPath>..\Binaries\RDotNet.dll</HintPath>
</Reference>
<Reference Include="RDotNet.NativeLibrary">
<HintPath>..\Binaries\RDotNet.NativeLibrary.dll</HintPath>
</Reference>
So you can do a search and replace on the string “…\Binaries” in all the files “*.csproj” and replace with the path of your choice, e.g.:
<Reference Include="RDotNet">
<HintPath>..\..\..\..\bin\R.NET\1.5.5\RDotNet.dll</HintPath>
</Reference>
<Reference Include="RDotNet.NativeLibrary">
<HintPath>..\..\..\..\bin\R.NET\1.5.5\RDotNet.NativeLibrary.dll</HintPath>
</Reference>
This on-boarding guide is a companion to the main R.NET documentation page, which you should refer to as of 2014-04-19.
Open the solution OnboardRDotNet.sln with a “recent” version of visual studio or MonoDevelop (Xamarin Studio)
You may want to look at and experiment with the projects in the following order: