R.NET 1.9.0

.NET Standard 2.0
dotnet add package R.NET --version 1.9.0
NuGet\Install-Package R.NET -Version 1.9.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="R.NET" Version="1.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add R.NET --version 1.9.0
#r "nuget: R.NET, 1.9.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install R.NET as a Cake Addin
#addin nuget:?package=R.NET&version=1.9.0

// Install R.NET as a Cake Tool
#tool nuget:?package=R.NET&version=1.9.0


  • R.NET can on all recent R versions from 3.4 onwards, including adjustments for R 4.0.x. While not extensively tested, any of the R 3.X releases should be supported. Note that on Linux only 3.5.y is supported due to a difficulty in detecting R versions on that OS.
  • Workaround: The R engine overrides PATH and R_HOME if a .Renviron file is present, at least on on Windows. This led to Default 'stats' package functions fail to load
  • Change on windows: if several versions of R are installed and registered in the windows registry, the most recent is the default R engine loaded.
  • Contributions by Luke Rasmussen and Kieren Johnstone are gratefully acknowledged
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on R.NET:

Package Downloads

Transitional package, you can remove and directly use nuget package ID R.NET

QuantConnect.Algorithm.CSharp The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

QuantConnect LEAN Engine: Algorithm.CSharp Project - A collection of C# algorithm demonstrations for how to use the API

QuantConnect.Lean The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

QuantConnect LEAN Engine: Launcher Project - Main startup executable for live and backtesting


An F# Type Provider providing strongly typed access to the R statistical package. The type provider automatically discovers available R packages and makes them easily accessible from F#, so you can easily call powerful packages and visualization libraries from code running on the .NET platform.


A .NET interoperability library to access the R statistical language runtime from .NET languages. The library is designed for fast data exchange, in process.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on R.NET:

Repository Stars
Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
.NET interop library to call the R statistical language in the same process
Version Downloads Last updated
1.9.0 154,933 10/4/2020
1.8.2 79,367 5/20/2019
1.8.1 4,783 5/4/2019
1.8.0 2,457 5/4/2019
1.8.0-alpha2 572 5/4/2019
1.8.0-alpha1 766 3/25/2019
1.7.0 86,400 8/29/2017
1.5.5 41,705 9/16/2013
1.5.4 2,381 8/24/2013
1.5.3 1,245 8/17/2013
1.5.2 1,347 8/10/2013 1,515 7/30/2013
1.5.0 4,089 7/28/2012

Fix an issue with character columns in data frames, that occured for 3.5+ versions of R