After installing both R (i386 2.12.2) and DCOM I ,I run Rdemo.ok!
for some reason I must call user-defined Rfunction with parameter called FindU.wRef .in my case:
After installing both R (i386 2.12.2) and DCOM I ,I run Rdemo.ok!
for some reason I must call user-defined Rfunction with parameter called FindU.wRef .in my case:
so does it connect to existing R session or creates a new one ?? I think It creates a new one as it was working without starting R.
Is it possible to connect to existing R seession ??
5
05 Dec 2012
MATLAB R-link
Functions for calling the statistical package R from within MATLAB.
So, I'm just beginning to use this and running into some trouble. The install worked fine but I am having issues using the evalR() function to source a function I have saved to disk. First, I attempted to write the code:
[RESULT, STATUS, MSG] = evalR('source('~/R functions/makerm function.R')');
however this provides an error in matlab itself because the portion of the code between the apostrophes of the evalR(‘ ‘) statement does not permit the entire command to be sent to R, specifically the 'source('~/R functions/makerm function.R')' portion of the command is what I want to execute in R. So, I tried the typical matlab method of adding an extra apostrophe within the text to make apostrophes actually read as apostrophes rather than as indicators of groupings within the command. I used the code:
[RESULT, STATUS, MSG] = evalR('source(''~/R functions/makerm function.R'')');
this runs however in the MSG output variable it says
"Error using COM.StatConnectorSrv_StatConnector/Evaluate Invoke Error, Dispatch Exception: There is no connection for this connection ID".
I am not sure as to what connection the error is talking about but I know that the DCOM connection is working since the Rdemo.m runs fine and I am able to send and compute things in my own scripts.
Ultimately, I'm trying to get R functions that I have created and saved on my hard drive to be accessible and used when I send data from Matlab to R. Thanks for any help you can give me regarding how to source a function via the matlab R link interface.
Comment only
20 Sep 2012
MATLAB R-link
Functions for calling the statistical package R from within MATLAB.
After several issues regarding statconnector I installed randfriends, the dcom prog and my R, then reinstalled R, ran it as admin and installed the dcom from R. Works fine now.
Comment only
23 Jul 2012
MATLAB R-link
Functions for calling the statistical package R from within MATLAB.
Comment only