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

RDotNet function to add two user defined inputs giving errors

I wrote the following controller function in an ASP.NET MVC5 application to return the sum of 2 user defined inputs using the R function sum(). This compiles successfully but does not give any output. It is giving 500 (Internal Server Error) since…
0
votes
2 answers

How to run an R program in asp.net

I am new to R.Net. I want to make a sample application that reads an Rcode and executes it to show the results to the user. Can anyone please suggest me some good tutorials to learn R.Net?
0
votes
0 answers

R tools for visual studio 2013

I am currently using Visual Studio 2013. I want to integrate my .net application with R by using R.net. But the websites are showing that R Tools needs Visual studio 2015 or a higher version. Is it possible to do it by using Visual studio 2013? If…
0
votes
1 answer

R syntax parser for .Net (C#)

is there a way to check the written R syntax in .Net? I mean for the case that the user type some R scripts in an editor and the system will tell him before execution that something is wrong in the codes. I have tried using R.Net but it evaluates…
Benjamin Martin
  • 576
  • 1
  • 8
  • 27
0
votes
0 answers

All possible options to call R from .Net(C#) in parallel

Hi i am working on a framework, which need to call the execution of R in parallel. Is there any options? I tried it with R.Net but i cant use it to execute R-Scripts in parallel. And it seems to be buggy. Thx in advance.
Benjamin Martin
  • 576
  • 1
  • 8
  • 27
0
votes
1 answer

Cannot use r.net within a wcf service

I am trying to set up an R.net WCF service as a server to run R commands on. I have set up a test WinForms application where everything works. This is how I use it: void init() { SetupPath() engine = REngine.GetInstanceFromID("test"); …
user5226582
  • 1,946
  • 1
  • 22
  • 37
0
votes
1 answer

Problems exiting C# program that uses R.Net

I have a small program in C# that loads the R.Net library to outsource some calculations that I can't do in c#, namely the Twitter anomaly detection library. Unfortunately, when the code finishes the console window it runs in hangs. If I run it in…
JetSetJim
  • 68
  • 12
0
votes
1 answer

I cannot install zoo package in R

Hi I bump on errors during install.packages(path2zoo.tar.gz,repos=null,type="source") It installs some other packages while trying out zoo ("zoo_1.7-14.tar.gz") produces the following error Installing package into…
0
votes
1 answer

R.NET Web application R library load

I have two applications: (A) is a console app, (B) is an MVC web app. Both x64, both have same Nuget references to R. Both run the same lines of code: var engine = REngine.GetInstance(); engine.Evaluate("log.ir <- log(iris[,…
nlv
  • 791
  • 7
  • 28
0
votes
1 answer

R.net error during evaluation - "subscript out of bounds"

I am getting "subscript out of bounds" error when I run R script via R.net (input data from C# code). Strangely if I run the Rscript when same input data is provided by excel, it runs fine! Any ideas on why it would happen? I am sending "vardata"…
user7157732
  • 347
  • 1
  • 8
  • 24
0
votes
1 answer

How do you pull error information from caret train error in Rdotnet?

I tried to train a model in RDotNet and got this error: Error in train.default(x, y, weights = w, ...) : Stopping I ran the same script in RStudio and it added some more information: Something is wrong; all the ROC metric values are missing: …
ds_practicioner
  • 733
  • 8
  • 20
0
votes
2 answers

How to initialize REngine globally in C#.net?

I am using R.Net and R.Net.Community packages in my c# project to enable R script. I have a c# class as follows: foreach(var item in list) { callR(item); } and a method in another class to run R script: CallR(int item) { //init the R engine …
Karan Desai
  • 3,012
  • 5
  • 32
  • 66
0
votes
1 answer

RDotNet evaluate with json or dataTable columns

I am using RDOTNET and not very clear on how to convert the data (json) to vectors. public string Calculate(string input, string formula) { if (_rEngine == null) CreateEngine(); dynamic list; if…
tomcat
  • 1,798
  • 2
  • 11
  • 14
0
votes
1 answer

How to read R-script results from C#

I have a R script about how to fitting parameters for the ODE models. It works well in R. The below is my code in R: library(ggplot2) library(reshape2) library(deSolve) library(minpack.lm) #load concentration…
Hong
  • 31
  • 5
0
votes
1 answer

SQL Server 2012 - "Error in library(neuralnet) : there is no package called 'neuralnet'"

How can we reference external dll of R like Neuralnet from SQL Server 2012? Currently I am trying to run a R.net assembly from SQL Server 2012. This assembly runs fine when I execute it from C#, but the problem arises when I execute it from SQL…
ze-corps
  • 65
  • 1
  • 9