0

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 source('\\\\Something.x.y.z.edu/SomeLocation/SomeFile.R'); in R or RStudio.

Any thoughts or suggestions are appreciated. Thank you.

1 Answers1

1

You probably need in C#

engine.Evaluate("source('\\\\\\\\Something.x.y.z.edu/SomeLocation/SomeFile.R');");

so that the string

"source('\\\\Something.x.y.z.edu/SomeLocation/SomeFile.R');"

is passed to R.

j-m
  • 1,473
  • 1
  • 13
  • 17