{"id":13706609,"url":"https://github.com/rdotnet/rdotnet","last_synced_at":"2025-04-04T21:11:16.080Z","repository":{"id":23337156,"uuid":"26697594","full_name":"rdotnet/rdotnet","owner":"rdotnet","description":".NET interop library to call the R statistical language in the same process","archived":false,"fork":false,"pushed_at":"2024-04-09T10:20:33.000Z","size":3982,"stargazers_count":357,"open_issues_count":99,"forks_count":130,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-03-28T20:09:54.313Z","etag":null,"topics":["dotnet","embedded-scripting-language","interoperability","pinvoke","r"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdotnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-11-15T23:29:04.000Z","updated_at":"2025-03-26T11:16:07.000Z","dependencies_parsed_at":"2024-06-18T13:53:46.602Z","dependency_job_id":null,"html_url":"https://github.com/rdotnet/rdotnet","commit_stats":{"total_commits":500,"total_committers":17,"mean_commits":29.41176470588235,"dds":0.518,"last_synced_commit":"decf3730f057d3eb9ff8e186b83f38286c80c5fb"},"previous_names":["jmp75/rdotnet"],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdotnet%2Frdotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdotnet%2Frdotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdotnet%2Frdotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdotnet%2Frdotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdotnet","download_url":"https://codeload.github.com/rdotnet/rdotnet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249532,"owners_count":20908212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","embedded-scripting-language","interoperability","pinvoke","r"],"created_at":"2024-08-02T22:01:02.066Z","updated_at":"2025-04-04T21:11:16.057Z","avatar_url":"https://github.com/rdotnet.png","language":"C#","funding_links":[],"categories":["C# #"],"sub_categories":[],"readme":"# R.NET\n\nwindows master: [![Build status master](https://ci.appveyor.com/api/projects/status/bok963px1o9k7jay/branch/master?svg=true)](https://ci.appveyor.com/project/jmp75/rdotnet/branch/master) windows testing: [![Build status testing](https://ci.appveyor.com/api/projects/status/bok963px1o9k7jay/branch/testing?svg=true)](https://ci.appveyor.com/project/jmp75/rdotnet/branch/testing) Linux master: [![Linux master Build Status](https://travis-ci.org/rdotnet/rdotnet.svg?branch=master \"Linux master Build Status\")](https://travis-ci.org/rdotnet/rdotnet/builds) [![Nuget Version](https://buildstats.info/nuget/R.NET)](https://www.nuget.org/packages/R.NET/)\n\nR.NET is an in-process bridge for the .NET Framework to access the R statistical language. R.NET works on Windows, Linux and MacOS.\n\n## License\n\n[MIT](./License.txt)\n\n## Software requirements\n\nOn Windows, R.NET requires .NET Framework \u003e 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)\nOn Linux and MacOS, Mono is required, as well as an access to the native R libraries.\n\n## Getting started\n\nAs of 2017-08\n\n* 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](https://www.nuget.org/packages?q=R.NET)\n* If you need a bit more documentation to get started, the prefered entry point is at [http://rdotnet.github.io/rdotnet](http://rdotnet.github.io/rdotnet)\n\n## Building from source\n\n### Compiler toolchain foreword\n\nDue to the move to targetting `netstandard2.0`, you might encounter compiling issue if using an older toolchain. This is machine dependent (mostly, which visual studio versions and .NET targetting packs you have). You may want to [adapt the instructions from the rClr packge](https://github.com/rdotnet/rClr/blob/master/README.md#windows) to avoid some pitfalls.\n\nAs an example:\n\n* `where msbuild` returns `C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\MSBuild\\Current\\Bin\\MSBuild.exe` should be the first line. `C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe` is probably not a good option.\n* `msbuild -version` returns `16.0.461.62831` or more recent\n* `where dotnet`: `C:\\Program Files\\dotnet\\dotnet.exe`\n* `dotnet --version`:  `2.1.602` or more. Note that this version of the .net core SDK would prevent compilation from VS2017: VS2019 required.\n* `nuget help`: `4.9.4.5839`\n\n### Compiling\n\nIf using dotnet version prior to 2.1.3, [installing/restoring prerelease dependency packages is problematic](https://github.com/dotnet/cli/issues/8485). You may need to use\n\n```sh\nnuget install -Prerelease DynamicInterop -OutputDirectory packages\n```\n\notherwise:\n\n```sh\nnuget restore RDotNet.Tests.sln\ndotnet build --configuration Debug --no-restore RDotNet.Tests.sln\n# or if any issue possibly try:\n# msbuild RDotNet.Tests.sln /p:Platform=\"Any CPU\" /p:Configuration=Debug /consoleloggerparameters:ErrorsOnly\n```\n\nWindows, if you have several versions side by side:\n\n```bat\nset DN=\"C:\\Program Files (x86)\\dotnet\\dotnet.exe\"\n%DN% build --configuration Debug --no-restore RDotNet.Tests.sln\n```\n\n#### Unit tests\n\nUnit tests can be run using:\n\n```sh\ndotnet test RDotNet.Tests/RDotNet.Tests.csproj\n```\n\nNormally you should get something like:\n\n```text\nTotal tests: 92. Passed: 84. Failed: 0. Skipped: 8.\nTest Run Successful.\nTest execution time: 5.2537 Seconds\n```\n\nHowever note that from time to time (or at the first `dotnet test` execution) tests may fail to start, for reasons as yet unknown:\n\n```text\nStarting test execution, please wait...\nThe active test run was aborted. Reason:\nTest Run Aborted.\n```\n\nIt may be that all subsequent calls then work as expected.\n\n```sh\ndotnet test RDotNet.FSharp.Tests/RDotNet.FSharp.Tests.fsproj\n```\n\n### Building the nuget package\n\n*This section is primarily a reminder to the package author.*\n\n```bat\nset B_CONFIG=Release\n:: Or for initial testing/debugging substitute Debug for Release\n:: set B_CONFIG=Debug\n\n%DN% build --configuration %B_CONFIG% --no-restore RDotNet.Tests.sln\n\n%DN% build R.NET/RDotNet.csproj --configuration %B_CONFIG% --no-restore\n%DN% build RDotNet.FSharp/RDotNet.FSharp.fsproj --configuration %B_CONFIG% --no-restore\n\n%DN% pack R.NET/RDotNet.csproj --configuration %B_CONFIG% --no-build --no-restore --output nupkgs\n%DN% pack RDotNet.FSharp/RDotNet.FSharp.fsproj --configuration %B_CONFIG% --no-build --no-restore --output nupkgs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdotnet%2Frdotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdotnet%2Frdotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdotnet%2Frdotnet/lists"}