简体   繁体   English

无法在MATLAB中调用R

[英]Fail to Call R in the MATLAB

I followed this post http://neurochannels.blogspot.com/2010/05/how-to-run-r-code-in-matlab.html , to install R(D)Com server in order to call R from the MATLAB, but i get error messages: 我按照这篇文章http://neurochannels.blogspot.com/2010/05/how-to-run-r-code-in-matlab.html进行安装R(D)Com服务器,以便从MATLAB调用R ,但我收到错误消息:

Error using openR (line 68)
Cannot connect to R.
Error using COM.StatConnectorSrv_StatConnector/Init
Error: Object returned error code: 0x80040013

What is going here? 这是怎么回事? Are there any other ways to call R in MATLAB? 在MATLAB中还有其他方法可以调用R吗? I was told that 有人告诉我

system 

can bee used to call other execution programmes, but how? 可以用来调用其他执行程序的蜜蜂,但是如何?

After using R(D)COM and Matlab R-link for a while, I do not recommend it. 在使用R(D)COM和Matlab R-link一段时间后,我不推荐这样做。 The COM interface has trouble parsing many commands and it is difficult to debug the code. COM接口在解析许多命令时遇到麻烦,并且难以调试代码。 I recommend using a system command from Matlab as described in the R Wiki . 我建议使用Matlab中的系统命令,如R Wiki中所述 This also avoids having to install RAndFriends. 这也避免了必须安装RAndFriends。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM