[R] R.matlab anyone ?

From: Alexander Nervedi <alexnerdy_at_hotmail.com>
Date: Tue 09 May 2006 - 13:09:12 EST


I have some code up and runnning in Matlab and need it for some stuff better handled in R. So R.matlab sounded terrific. However, I am having trouble getting it to go.
I am using R v 2.2.1 (i know i know i need to upgrade), and Windows XP and Matlab (R12).

here is what I get.
# in R GUI

Loading required package: R.oo
R.oo v1.1.6 (2006-04-03) successfully loaded. See ?R.oo for help. R.matlab v1.1.1 (2006-01-21) successfully loaded. See ?R.matlab for help.

Loading required package: R.utils
R.utils v0.7.7 (2006-03-30) successfully loaded. See ?R.utils for help. [1] 0


However, Matlab does open up on seperate window, but with an error message. This reads,

  To get started, type one of these: helpwin, helpdesk, or demo.   For product information, visit www.mathworks.com.

??? Error: File: C:\R\R-2.2.1\MatlabServer.m Line: 109 Column: 45 ")" expected, "identifier" found.

So I went to MatlabServer.m and found that

108 if (port < 1023 | port > 49151)
109 error('Cannot not open connection. Port ('MATLABSERVER_PORT') is out of range [1023,49151]: %d', port);
110 end

(the numbers are the line numbers). my guess is that I haven't been able to connect and the 0 i see from within R is a sign of this. Can anyone advice me as to what is going on. I feel there is something missing - i can get the matlab command window to come up but .... the connection i guess is not there.

Any ideas would be really helpful.


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 09 13:13:45 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 09 May 2006 - 16:10:07 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.