Skip to content

.NET interop library to call the R statistical language in the same process

License

Notifications You must be signed in to change notification settings

onsitemapping/rdotnet

 
 

Repository files navigation

Build status

R.NET

R.NET is an in-process bridge for the .NET Framework to access the R statistical language. R.NET works on Windows, Linux and MacOS.

Software requirements

On Windows, R.NET requires .NET Framework > 4.6.1 or .NET Core 2.0, and an access to the native R libraries installed with the R environment. R needs not necessarily be installed as a software on the executing machine, so long as DLL files are accessible (you may need to tweak environment variables for the latter to work, though) On Linux and MacOS, Mono is required, as well as an access to the native R libraries.

Getting started

As of 2017-08

  • If you want the latest binary distribution of R.NET and you are already familiar with managing dependencies with NuGet, head to R.NET on NuGet
  • If you need a bit more documentation to get started, the prefered entry point is at http://jmp75.github.io/rdotnet

Building from source

Foreword/rant

As of February 2018 I am underwhelmed by the state of nuget package dependency. The process of migrating R.NET to netstandard2.0 has been replete with frustration with the lack of clarity, multiple issues, inconsistencies or bugs in the behaviors of dotnet, nuget and visual studio.

Building from source

If using dotnet version prior to 2.1.3, installing/restoring prerelease dependency packages is problematic. You may need to use

nuget install -Prerelease DynamicInterop -OutputDirectory packages
dotnet restore RDotNet.Tests.sln
dotnet build --configuration Debug --no-restore  RDotNet.Tests.sln
dotnet test RDotNet.Tests/RDotNet.Tests.csproj

Building the nuget package

This section is primarily a reminder to the package author.

dotnet build --configuration Release --no-restore  RDotNet.Tests.sln
dotnet pack R.NET/RDotNet.csproj --configuration Release --no-build --no-restore --output nupkgs
# Or for initial testing/debugging
dotnet pack DynamicInterop/DynamicInterop.csproj --configuration Debug --no-build --no-restore --output nupkgs

About

.NET interop library to call the R statistical language in the same process

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 93.7%
  • F# 5.1%
  • Other 1.2%