8000 GitHub - AndrewIOM/rdotnet at acm-net6.0
[go: up one dir, main page]

Skip to content

AndrewIOM/rdotnet

 
 

Repository files navigation

R.NET

R.NET is an in-process bridge for .NET to access the R statistical language. R.NET is cross-platform and works on Windows, Linux and macOS. Released under an MIT license.

Builds

GitHub Actions
Github Actions

NuGet

Package Stable Prerelease
R.NET NuGet Badge NuGet Badge
R.NET.FSharp NuGet Badge NuGet Badge

Requirements

R.NET supports .NET Core 2.0 or greater on any platform, or .NET Framework 4.6.1 or greater on Windows. Access to native R libraries as installed with the R environment is also required.

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).

Getting started

For documentation to get started, the prefered entry point is at http://rdotnet.github.io/rdotnet.

Developer Instructions

R.NET uses FAKE to orchestrate building and testing. To build and test:

  1. Restore dotnet tools: dotnet tool restore

  2. Run FAKE: dotnet fake build -t All

FAKE will clean and build all projects, run tests, and generate nuget packages in the bin folder.

Tests

Unit tests can be run seperately from FAKE using:

dotnet test tests/RDotNet.Tests/RDotNet.Tests.csproj

Normally you should get something like:

Total tests: 92. Passed: 84. Failed: 0. Skipped: 8.
Test Run Successful.
Test execution time: 5.2537 Seconds

However note that from time to time (or at the first dotnet test execution) tests may fail to start, for reasons as yet unknown:

Starting test execution, please wait...
The active test run was aborted. Reason:
Test Run Aborted.

It may be that all subsequent calls then work as expected.

dotnet test RDotNet.FSharp.Tests/RDotNet.FSharp.Tests.fsproj

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.4%
  • F# 5.2%
  • Other 1.4%
0