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
0
votes
1 answer

Object not found in R.net c#

After importing data from csv files, I want to arrange them according to Id numbers for example for the first table: DataFrame DataIns = engine.Evaluate("DataIns<-read.table('C:/Users/isalah/Desktop/Fichiers_CRM/Fichier_csv/Diagnostic.csv',…
User2018
  • 61
  • 10
0
votes
1 answer

Use of many names in c# r.net for one variable

It's not like R where we can manipulate many operations for one variables having one name as this example. DataIns=read.csv(file="C:/Users/isalah/Desktop/Fichiers_CRM/Fichier_csv/Inscrits.csv",sep=";",header=TRUE) DataIns=DataIns[with(DataIns,…
User2018
  • 61
  • 10
0
votes
0 answers

Error in file(file, "rt") : cannot open the connection '

I need to execute some R scripts in c# .So I write the code below including R.net package to do interaction between R and c#. It's about importing csv files. using RDotNet; namespace ConsoleApp11 { class Program { static void…
User2018
  • 61
  • 10
0
votes
0 answers

Can't resolve the Error "can't contain definitions of 'CreateInstance' and 'SetDllDirectory' "

I am new c# developper. I need to run my R scripts within c# program. I find documentation here http://quantlabs.net/academy/very-nice-my-c-program-calls-r-code-through-the-r-net-package-dancing-in-the-streets/ and I tried to adapt it to my project.…
User2018
  • 61
  • 10
0
votes
1 answer

failing to load rjava in R script using rDotNet in C#

i'm using c# and R.NET.Community package to run R script from a c# application, i can run any script with no reference to rjava library with the code below but the code below crashed when the script contain the line Library(rJava) and gives me…
Mohamed Saleh
  • 135
  • 3
  • 14
0
votes
2 answers

How to perform Change Point Analysis using R.NET

How to perform Change Point Analysis using R.NET. I am using below code REngine.SetEnvironmentVariables(); REngine engine = REngine.GetInstance(); double[] data = new double[] { 1, 2, 3, 4, 5, 6 }; NumericVector vector =…
bjan
  • 2,000
  • 7
  • 32
  • 64
0
votes
1 answer

Dataframe to datatable r.net fastly

I would like to know if there is a better method to convert a datanet from rnet to a datatable of system.data or something like that. Currently, what I'm doing is Dataframe dataset = engine.evaluate ("some dataframe"). AsDataframe (); DataTable…
user119144
  • 59
  • 7
0
votes
0 answers

Deployment and Release process for R code

Recently we have started working for predictive modelling using R language; our model is stable now but need to productionize it such using solid deployment, versioning and build process. Anyone can provide insight into it ? As in C# we have…
Ocean
  • 655
  • 2
  • 8
  • 21
0
votes
1 answer

Accessing and extracting Data Frame Results - R.NET

I run a R script from C# and get the results in a dataframe as : var OUTPUT = engine.GetSymbol("detail.dt").AsDataFrame(); OUTPUT dataframe has let's say 3 columns as: NAME Month Rate Rob 1 100 Rob 2 150 Rob 3 500 Ned 1 200 Ned 2 500 Sansa 1…
user7157732
  • 347
  • 1
  • 8
  • 24
0
votes
0 answers

How to have multiple R calls concurrently ,not sequentially, in a web application

I know that we can call R functionalities by Rscript or rdotnet in .Net. There are some nice explanations here, here and here. My question is: How can we have multiple concurrent R calls in .Net? I did the following test and found out that it is not…
Mohsen Sichani
  • 1,002
  • 12
  • 33
0
votes
0 answers

How to see if R returns a warning but won't output it to the screen?

I was doing computation or C# and R.net. I would like to do the computations such that it won't output warnings or results to screen but saves them to the variables. I found that the C# won't output the result to the screen if I set …
Jaakko Seppälä
  • 744
  • 2
  • 7
  • 21
0
votes
2 answers

Calling R function from C#

Is there any way to call R function by using R.NET from C#? I'm using Visual Studio 2017 and installed the latest version of R.NET. I had tried to use the codesearch from Google which using REngine.SetDllDirectory but Visual Studio show out an…
Ice
  • 1
  • 1
0
votes
1 answer

By using RDotnet and C# , How can i show my R Code output in c# RichTextBox?

is it possible to get a variable value from rodotnet and show the value in RichTextBox?? CharacterVector charVec = engine.CreateCharacterVector(new[] { txtgetUser.Text.ToString() }); engine.SetSymbol("username", charVec); …
0
votes
1 answer

Error in R.NET - Data frame Object not found

Folks, I have the simplest of code that I built for testing R.NET but keep getting an error while debugging. I populate a dictionary and then build a simple R data frame. Not displaying the code when dictionary is populated. While debug I did that…
user7157732
  • 347
  • 1
  • 8
  • 24
0
votes
1 answer

R.Net Displaying list of objects returned by R code in an MVC application

I have an R code which returns a list of numbers using output <- return(list(add,diff,prod,div)) I need to display these results in an MVC application using R.Net. I am able to display this in case of console application, but not in MVC. The…