Questions tagged [r.net]

For questions about R.NET (rdotnet), which allows interoperability between the .NET Framework and the R language for statistical computing.

R.NET enables the .NET Framework to interoperate with the R statistical language in the same process. It requires .NET Framework 4 and the native R DLLs to be installed with the R environment.

R.NET works on Windows, Linux, and macOS.

180 questions
1
vote
1 answer

How to get R.Net work with VB.Net

I am trying to get R.Net work with VB.NET. I translated an official example from c# to vb.net but it is not working. There are different things I tried. First I used the SetupHelper as explained on the official page. Imports System.IO Namespace…
ruedi
  • 5,365
  • 15
  • 52
  • 88
1
vote
1 answer

R.NET Getting Data from R

I'm trying to make a simple statistical tool with using R and R.NET on C#.NET environment. I'm having problems getting data from R. Code is below bool initResult = REngine.SetDllDirectory(rPackagePath); if (!initResult) throw new Exception(@"R…
user168574
  • 15
  • 1
  • 8
0
votes
0 answers

R crashing during evaluation

I have a .Net winforms application built using 4.8 .Net fwk. It is using R.Net(1.9.0) which is running R engine version 3.5.3. Recently we started encountering application crashing issue intermittently but quite often also there is no exception is…
0
votes
0 answers

Run a c# script from openBots.ai

I have an OpenBots.ai application I'm building in OpenBots Studio. There are 4 steps that run without a problem retrieving an excel workbook and pulling data out into a .Net DataTable. My DataTable has several columns, many duplicate values in each…
user1518003
  • 321
  • 1
  • 7
  • 18
0
votes
2 answers

Loading rdotnet in C# console application fails with an unknown error on macOS

I have a very basic C# console application on macOS with the code pasted below. When I try to run this code, the call to REngine.GetInstance() fails with the following exception: Unhandled exception. System.ArgumentException: This 64-bit process…
Graviton
  • 103
  • 1
  • 9
0
votes
0 answers

R.Net 1.9.0 does not work with .Net 5 Core application

Below logic working fine with .Net Framework 4.7.1 and its not working with .Net 5 application. Application simply crashed without displaying any error message. Help me to run R.Net in .Net 5 application without any error. class Program { public…
Umapathy S
  • 220
  • 2
  • 17
0
votes
0 answers

Importing a .Rdata file in .NET

I'm quite novice with R and I don't quite understand a few simple things. I need to load an .Rdata file using C#.NET. I've installed the R.NET library and I've initialize the engine without any issues. What I'm struggling is how to import a file ,…
Goku1989
  • 11
  • 3
0
votes
1 answer

Error on installing the tidyverse and ggplot2 packages

I am seeing the following error when trying to install the tidyverse and ggplot2 R package Error in install.packages : cannot open file 'C:/Users/dell user/Documents/R/win-library/4.1/filebad038967c5e/rlang/help/figures/rlang.png': Permission…
izano
  • 1
0
votes
1 answer

rDotNet CLRServer.exe not found

I am trying to access a C# dll within R using rDotNet. Note that I am not at all well versed in C# and Visual studio. In R, when I try to run the .cinit() function for the first time, I get: NOTE: starting CLR server Warning message: In system2(exe,…
Ingolifs
  • 290
  • 2
  • 14
0
votes
1 answer

Got Error 502 using R.NET on 64 bit azure

I want to integrate c# with R (V4.1.0) using r.net (v1.9.0.0) and I have 2 Azure Web Apps, one with 32 bit setting on Platform and the other one using 64 Bit. When I want to get instance with this code: REngine engine = REngine.GetInstance It works…
0
votes
2 answers

R.NET works with x86 but not x64

I'm trying to build and run the Hello World sample at the tutorial page at R.NET. When I force the program to run in x86 mode, it seems to do OK. However, when I run in x64, it stops very early on with the message, "[program] exited with…
David
  • 4,665
  • 4
  • 34
  • 60
0
votes
1 answer

RDotNet nullreference exception

The line REngine engine = REngine.GetInstance(null, true, rinit); exception with NullReference. Not sure what I am doing wrong. I even tried the commented out version of getting the engine and that also doesn't work. using RDotNet; using…
Ivan
  • 7,448
  • 14
  • 69
  • 134
0
votes
1 answer

How to print on RDotNet console

ar envPath = Environment.GetEnvironmentVariable("PATH"); var rBinPath = @"C:\R-4.0.2\bin\i386"; Environment.SetEnvironmentVariable("PATH", envPath + Path.PathSeparator + rBinPath); REngine r = REngine.GetInstance(); …
k ch
  • 1
0
votes
1 answer

Hot to set R home directory in r.net on docker/Debian?

I try to use R.Net in an asp.net Razor App with docker support. The docker image is Debian 10, R is installed in the image under the standard path /usr/lib/R. When executing REngine.SetEnvironmentVariables(rHome:"/usr/lib/R"); // or any other path…
Qrt
  • 389
  • 3
  • 16
0
votes
1 answer

How to get RdotNet into Visual Studio?

I have downloaded the rdotnet package from github, now I'm not sure what i need to do to get it into the directory of Visual Studio so that I can start using R in C#. I'm a novice coder, and this is way beyond my scope of knowledge. I've also…
Scott
  • 21
  • 1
  • 6