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 called "delete" that take a vector as parameter.
1- Now i want to import the R source file that contains my functions to my Console app to be able to call these functions directly from there. I found this code:
using RDotNet;
{ ....
REngine engine = REngine.GetInstance();
engine.Evaluate("source('PATH/file.R");
... }
It doesn't get any error but i'm not sure if it's working. Now if i want to execute my function "delete", what is the command for that??
2- The source file is now situated on my desktop, but i want my app to run on any computer, so how can i add my R source file to the VS project to make it portable?