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

parSapply problems in R parallel code

I try to optimize my R code with parSapply. I have xmlfile and X as global variables. When I didn't use the clusterExport(cl,"X") and clusterExport(cl,"xmlfile") I got "xmlfile object was not found". When I used these two clusterExport I got an…
tomiliJons
  • 75
  • 8
0
votes
1 answer

Upper Bound Error in nloptr

I use nloptr to model a non linear optimization problem using R.Net . I pass initial values of the parameters to the Rscript where I define lb and ubto the variables. lb for all the variables is 0 whereas ubis "1" for some & "Inf" for some…
Modi
  • 143
  • 1
  • 13
0
votes
1 answer

SEHE Exception running R script with RDotNet

I'm getting the exception 'System.Runtime.InteropServices.SEHException' in RDotNet.dll by running a simple R script: n + minWidth with this code in c#: // Load the R environment REngine.SetEnvironmentVariables(); REngine engine =…
Michele mpp Marostica
  • 2,445
  • 4
  • 29
  • 45
0
votes
1 answer

Exception while using R Engine in Rdotnet

I have installed R.NET.Communityvia NuGet Package manager and added the following code (to get things started) but I keep getting error at the Rengine.SetEnvironmentVariables() line; the code does not even go forward. using System; using…
Modi
  • 143
  • 1
  • 13
0
votes
1 answer

CreateDataFrame in R.Net

I'm trying to implement my R script on vb.NET using Rdotnet. First, I call SQL stored procedure from my database to perform some pre-processing of the data. This gives me a DataTable object in vb.NET. Then, I intend to run my R function using…
0
votes
1 answer

Create data.table using RDotNet

I'm trying to convert some R code script into C# code via RDotNet Library. I was able to convert a big part but there's an issue while creating data.table in C#. Above is my code example: Dictionary> myDic = new…
mhd
  • 446
  • 5
  • 18
0
votes
1 answer

R IIS Deployment Issue

I am facing deployment issues in IIS Getting Error Error in library(RODBC) : there is no package called 'RODBC' same with other packages also. Tried changing path in Environment variables also but nothing works for me But in VS2015 its working…
0
votes
1 answer

How to create an S4 Object using RdotNet

While using R.NET for creating an S4 object ( an output of a function from the mirt package. engine.Evaluate("library(mirt); data(LSAT6); x=mirt(LSAT6,1)"); S4Object Convertedinput = inputtoCsharp.AsS4(); I need to to see the output of x (all the…
Artiga
  • 776
  • 2
  • 16
  • 37
0
votes
1 answer

An unhandled exception of type 'RDotNet.EvaluationException' occurred in RDotNet.dll

R.Net is throwing error while using Network File path in a Windows Forms application. engine.Evaluate("source('\\\\Something.x.y.z.edu/SomeLocation/SomeFile.R');"); While the same statement works if I try to run the line…
0
votes
1 answer

I want to read from the command line in a .net console application and using r.net package i want to use that data for R

REngine.SetEnvironmentVariables(); REngine engine = REngine.GetInstance(); engine.Evaluate("load('~/Shiny.RData')"); Console.WriteLine("Enter Date:"); String date1 = Console.ReadLine(); …
0
votes
1 answer

how can I create Named List Members object in R.net?

How can I create "Named List Members" in R.NET? The R code looks like this: odpar <- list(mean = c(-1.5, 0, 1.5), var = c(0.5, 0.6, 0.8))
Ben Lau
  • 3
  • 1
0
votes
1 answer

How to pass an argument while calling the R function from .Net using R.Net

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using Outlook = Microsoft.Office.Interop.Outlook; using Office = Microsoft.Office.Core; using RDotNet; using…
0
votes
1 answer

Accessing R packages from asp.net

I have an asp.net app where I am using R.NET. Everything works fine until I load a package using library() The web app of course runs in IIS and I get this error Error: package or namespace load failed for 'lattice'". Though it loads and works…
Sarmad
  • 303
  • 3
  • 16
0
votes
1 answer

Is it possible to use r markdown with r.net

I am working on a form in vb.net that also needs to produce reports (basically a couple of tables and charts). I was going to create the reports directly through vb.net but recently discovered R.net which lets you use R from .Net. Seeing as there is…
Rafael Velásquez
  • 337
  • 1
  • 3
  • 14
0
votes
0 answers

How can I load a package like ''forecast'' in C# via R.NET

I am trying to use: engine.Evaluate("dataset = read.table(file.choose(),skip=1)"); engine.Evaluate(@"install.packages('forecast')"); engine.Evaluate("require('forecast')"); …
user4203128
1 2 3
11
12