0

R.Net 在 Windows 窗体应用程序中使用网络文件路径时抛出错误。

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

如果我尝试source('\\\\Something.x.y.z.edu/SomeLocation/SomeFile.R');在 R 或 RStudio 中运行该行,则相同的语句有效。

任何想法或建议表示赞赏。谢谢你。

4

1 回答 1

1

你可能需要在 C#

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

使字符串

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

传递给 R。

于 2015-12-20T01:00:53.173 回答