Re: [R] driving R from MATLAB

From: Moshe Hoshen <moshe_ho_at_rosettagenomics.com>
Date: Mon, 17 Mar 2008 11:46:03 +0200

Dear Dieter
Thanks
I have my script working perfectly now, thanks to you Cheers

-----Original Message-----
From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of Dieter Menne
Sent: Monday, March 17, 2008 10:51 AM
To: r-help_at_stat.math.ethz.ch
Subject: Re: [R] driving R from MATLAB

Moshe Hoshen <moshe_ho <at> rosettagenomics.com> writes:

>
> I am trying to use R functions from my MATLAB code using a DCOM
server.
> I am working under Windows XP.
..
> I am trying to perform survival analysis, using Surv
>
> Surv(recruTime,recur)
>
> Surv creates a somewhat complex output and I get the response
>
> Problem evaluating command source(
> "s:\\R&D\\matlab\\repository\\personalfolders\\moshe\\colon\\rcut.r").
>
> Invoke Error, Dispatch Exception: Object is static; operation not
> allowed

I am not using it with Matlab, but quite extensively with C#. The somewhat
strange error message you noted "Object is static" has always been an error in
the script.

When I am sure that the script works Ok when run separately, it frequently has
to do with the current directory being different when run with RDCOM and from
GUI. Therefore I explicitly set the working directory at the top of all scripts,
or get is from an environment string.

The most helpful tool is a character device in my application that outputs the R
string directly, so I immediately see what the cryptic "Object is static" means.

Dieter



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 17 Mar 2008 - 09:49:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 17 Mar 2008 - 11:30:22 GMT.

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

list of date sections of archive