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

I am trying to Make RDotNet work with C#, and I am encountering problems

I am on a 64 bit windows machine In Visual Studio 2012 working in a Web environment. I have used nuget to install the latest version of R.net (1.5.5) last published 16/09/2013, I have tried setting the Path (both user and system) to include the…
julian guppy
  • 411
  • 1
  • 4
  • 21
7
votes
3 answers

RDotNet vs R scripting

When is it an advantage/disadvantage to be using RDotNet for making statistical calculations as opposed to generating an R script text file and running it from the application using e.g. Process.Start? Or is there some other better way? I need to…
tomsv
  • 7,207
  • 6
  • 55
  • 88
6
votes
1 answer

Creating an instance of the REngine using R.Net version 1.5.5

I am trying to create a "Hello World" example in R Language using R.Net version 1.5.5 (loaded from NuGet). Unfortunately, none of the online samples that I have seen work. THIS IS WHAT I HAVE DONE: Installed Microsoft R Open 3.2.4, the enhanced R…
Prisoner ZERO
  • 13,848
  • 21
  • 92
  • 137
6
votes
1 answer

Retrieve results from R evaluation using R.Net

I am using R.Net 1.5 to attempt to do a simple forecast using ARIMA. I've tried with R 2.14 and R 2.15. I'm using Visual Studio 2012 target .NET 4 though I've also tried .NET 4.5 and Visual Studio 2010. Here is a piece of the code I've…
Chase
  • 564
  • 7
  • 22
5
votes
0 answers

RDotNet (R.NET) issues in Azure Functions

I have an Azure Function that executes R code by using RDotNet library (R.Net) Everything works fine on my local environment, but when I deploy my code to azure, the process to load specific libraries (zoo, TTR) never ends. This is my code: string…
Aldo Saucedo
  • 77
  • 1
  • 2
  • 5
4
votes
0 answers

This 64-bit process failed to load the library R.dll. Native error message is 'The operation completed successfully'

I have a .net program that is built on .net framework 4.7.2, which call upon the rdotnet DLL (which is built on .net standard 2.0) to run R script, both the program and the DLL are compiled for the 'Any CPU' platform, when I deploy it to a 64-bit…
For Comment
  • 1,139
  • 4
  • 13
  • 25
4
votes
0 answers

Integrate R with .Net

Requirement: Invoke R script (on server) via C#, e.g. via webapi. Here restful endpoint receives parameter (e.g. via GET request) and results from R execution is returned (e.g. as JSON). I am aware of this: How do I run a Python script from…
cs0815
  • 16,751
  • 45
  • 136
  • 299
4
votes
3 answers

Convert DataTable columns to typed IEnumerable[]

How to convert DataTable columns to IEnumerable[] which is required to create a data frame in R.NET I have the following code: DataTable dt = CreateDateTable(); REngine e = REngine.GetInstance(); IEnumerable[] columns = new…
Sebastian Widz
  • 1,962
  • 4
  • 26
  • 45
4
votes
1 answer

Is it possible to use an object defined in C# to serve as an input to R function/command using R.NET

I am using R.NET library to call R functions in C#. I want to define or construct input in c# and pass it to the R command. I tried this : engine.Evaluate("library(mirt)"); engine.Evaluate("x=mirt(Science,1)"); S4Object obj111 =…
user3755708
4
votes
1 answer

CreateNumeric Vector Method throwing an error using R.NET in IronPython

I am using R.NET in IronPython in Visual Studio 2012. The code below works fine: import clr from System import * from System.IO import * clr.AddReferenceToFileAndPath("C:\\PythonDev\\MSP_Script\\Python\\MSP_Script\\RDotNet.dll") from RDotNet…
acambitsis
  • 45
  • 4
4
votes
1 answer

RDotNet Dataframe Query

I have just started to use the rdotNet from: http://rdotnet.codeplex.com/. I have never used R itself before but can do simple arithmetic in it. I have been able to create the instance and do some of the simple numeric calculations in c#. My issue…
3
votes
0 answers

rDotNet library warning in R 4.0.0

rDotNet library seems to have the following issue with R 4.0.0. Does someone know how to fix this? > library(rDotNet) attempting to build CLR server, one time setup Warning message: In fun(libname, pkgname) : could not find nuget in path; will not…
vorlket
  • 131
  • 10
3
votes
1 answer

F#, Deddle and R.Net: seq<'a> [] vs. IEnumerable array

I’m trying to convert a Deedle Frame into an R DataFrame using R.Net. I tried 3 different approaches: open RDotNet REngine.SetEnvironmentVariables(@"C:\Program Files\R\R-3.6.3\bin\x64",@"C:\Program Files\R\R-3.6.3") let engine =…
FRocha
  • 942
  • 7
  • 11
3
votes
0 answers

C# of Visual Studio and R.Net not displaying any graph with ggplot2

I have the following code to plot my input series using R charts from my C# application: FormatoPlot = string.Format("png('{0}',{1},{2})", plotTSPath.Replace('\\', '/'), pbPlotTS.Width, pbPlotTS.Height); objR.Evaluate(FormatoPlot); …
3
votes
1 answer

Can I use R.Net without installing R

I am building an application within C# and I want to use some of the R libraries within this application. I am using R.Net to do this. However, I will deploy this software to users that may not have R downloaded on there computers. Is there any way…
Daniel Wyatt
  • 960
  • 1
  • 10
  • 29
1
2 3
11 12