如何通过VBnet(或C#)与R通信 [英] how to communicate with R through VBnet( or C#)

查看:74
本文介绍了如何通过VBnet(或C#)与R通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我用VB.net(在Windows平台上)开发了一个实验应用程序,当应用程序收集数据时,我想使用R来分析数据,但是我不知道如何 与R 交流(换句话说, 我想在我自己的应用程序中将R脚本发送到R ).如果有人可以给我一些建议或参考文件,我将不胜感激.非常感谢你!

Recently, I Developed an Experiment Application with VB.net(in Windows platform), When the application collected the data,I want to use R to Analysis the data, But I don't know how to Communicate with R (In other word, I want to send R script to R in my own application). I will appreciate if anyone could give me some suggetions or some reference documents. Thank you very much!

推荐答案

我建议您尝试 R.NET .该说明说:

I'd suggest you try R.NET. The blurb says:

R.NET使.NET Framework能够与R Statistics合作计算.R.NET需要安装.NET Framework 4和本机DLL与R环境.您不需要其他额外的安装.享受用R用您的特殊语言进行统计和编程.

R.NET enables .NET Framework to collaborate with R statistical computing. R.NET requires .NET Framework 4 and native DLLs installed with R environment. You need no other extra installations. Enjoy statistics and programming in your special language with R.

这是一个开源绑定,似乎比statconn工具更简单,因为它不通过DCOM.LGPL许可,因此也免费用于商业用途.而且,您可以与 Excel-DNA 结合使用,以通过.NET将R公开给Excel-这里有一些讨论: http://www.r-bloggers.com/尚有另一种使用R-in-excel的方式来开发网络程序员/.

It is an open source binding that seems a bit simpler than the statconn tools, since it doesn't go through DCOM. LGPL licensed, so free for commercial use too. And you can combine with Excel-DNA to expose R via .NET to Excel - some discussion here: http://www.r-bloggers.com/yet-another-way-to-use-r-in-excel-for-net-programmer/.

这篇关于如何通过VBnet(或C#)与R通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆