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
3
votes
2 answers

Exception at REngine.SetEnvironmentVariables() call

I am getting an exception at REngine.SetEnvironmentVariables() in my below code, may I know how can I check the environment variables are set correctly. static void Main(string[] args) { REngine.SetEnvironmentVariables(); // <-- May be…
Mani
  • 105
  • 1
  • 1
  • 8
3
votes
0 answers

R: Cannot convert type System.Collections.Generic.List`1[System.DateTime] to an R vector

I am building a R data frame using RdotNet. The dataframe has four columns of the types; string ,datetime,double,double. Here is the below code: List HiSumOilList = new List(); List HiSumWaterList = new…
user7157732
  • 347
  • 1
  • 8
  • 24
3
votes
1 answer

R.NET vs R.NET.Community in NuGet

Can anyone tell me the difference between R.NET and R.NET.Community in the NuGET package manager? They both reference http://rdotnet.codeplex.com/ as their Project URL. The old project page says: R.NET is now distributed via R.NET.Community on…
isedwards
  • 2,429
  • 21
  • 29
3
votes
1 answer

Calling function from an r source file in a c# console application using R.NET

I'm Creating a Console app with C# in wich i have to make some data analysis using R.NET. I already created multiple R fuctions that i'll be using and i tested them in RStudio and everything works fine. Suppose that my source file has a function…
Motoko
  • 87
  • 11
3
votes
1 answer

R.NET crashes when I run the whetting appetite app

The following didn't work for me. Simply crashes with no exception caught. REngine engine = null; try { REngine.SetEnvironmentVariables(@"C:\Program Files\R\R-3.2.3\bin\x64", Directory.GetCurrentDirectory()); engine =…
superfly71
  • 521
  • 1
  • 7
  • 21
3
votes
1 answer

r.net RDotNet.REngine does not contain a definition for 'GetInstance'

I copied the code right from the documentation http://jmp75.github.io/rdotnet/tut_basic_types/ REngine.SetEnvironmentVariable() and REngine.GetInstance() both give compiler errors saying 'RDotNet.REngine' does not contain a definition. I installed…
MIKE
  • 1,039
  • 7
  • 24
3
votes
1 answer

C# - Convert R Data Frame to Deedle.Frame

I have a C# application which needs a Deedle Frame as input data. I also have a R script that return a data frame, and I don't want to re-implement the algorithm in R script by C#. I tried using R.Net, I can get the data frame from R script in C#…
Ha Pham
  • 373
  • 3
  • 18
3
votes
1 answer

Using R in asp.net web application

I am trying to use R script in a asp.net c# web application. I am trying to use a simple r script which will concatenate two strings to a single one. Below is my cs code using RDotNet; using System; using System.Collections.Generic; using…
Karthik Venkatraman
  • 1,619
  • 4
  • 25
  • 55
3
votes
1 answer

How to get ExcelDNA work with R.Net

I am a C# and R beginner trying to run the example http://mockquant.blogspot.com/2011/07/yet-another-way-to-use-r-in-excel-for.html
Jacek Kotowski
  • 620
  • 16
  • 49
3
votes
1 answer

How to share SQLite in-memory database between two connections in RSQLite in R?

I'm trying to test a way of sharing large datasets between .NET and R. My current idea is to Open a SQLite database connection from .NET; Write all the data I generated in .NET to this database; Run R in the same process using REngine from R.NET…
doraemon
  • 403
  • 6
  • 15
2
votes
2 answers

How to embed a R plot in a Winform in c#?

I am using R.NET to perform computation in my C# application and now I'd like to display the results in a Winform. Anyone could advise on how to embed a R plot in a winform using R.NET ? I found the below post which seems outdated as I can't find…
bricx
  • 593
  • 4
  • 18
2
votes
1 answer

RDotNet dataframe date column converted into numericvector

I'm calling a function in R through RDotNet library (.NET c#). When calling through R itself the output is a dataframe where one of the columns are Dates with "Date" format. But when calling the function with RDotNet and reading it as DataFrame…
João Mota
  • 21
  • 3
2
votes
4 answers

how to solve RDotNet REngine nullreference exception

I am trying to use the REngine.GetInstance() function but I keep getting a null reference exception. I have tried using another function in REngine just in case the getInstance method was at fault, like REngine.SetEnvironmentVariables(), yet they…
Mat
  • 41
  • 1
  • 5
2
votes
2 answers

An unhandled exception of type 'System.StackOverflowException' occurred in RDotNet.dll to load R library in web application

I am getting an error same error when loading "dplyr" library. engine.Evaluate("library(dplyr)"); Above code me same error "An unhandled exception of type 'System.StackOverflowException' occurred in RDotNet.dll". Can someone please help me?…
2
votes
0 answers

Can't manipulate console window in c#

When I execute my code c# , and I didn't call the console window using console.writeline(...) The program shows me in the console window data frame elements. for example here : REngine engine = REngine.GetInstance(); DataFrame DataIns =…
User2018
  • 61
  • 10
1
2
3
11 12