Skip to content

Best advice for connect R and Octave

7 messages · Jason Rupert, Uwe Ligges, Charlie Sharpsteen +1 more

#
I see at one time there was a package called ROctave.  I tried to install that package:
--- Please select a CRAN mirror for use in this session ---
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
  package ?ROctave? is not available

Unfortunately it appears that the package is no longer available. By any chance is there another package or series of steps that need to be followed to allow R to interface with Octave on the Window platform (not using Cygwin)?  

Ideally the interface would allow R to make Octave calls.   I am using Octave Version 3.2.3 installed from http://octave.sourceforge.net/. 

For example I would like to call the bode function in Octave from R:


L = tf2sys(3e4 * [0.0025 0.1 1], [0.01 1.03 3.03 3.01 1]);
bode(L);
Thanks for any feedback and insights.
#
- It has never been on CRAN.
- A quick Google search suggests it is on Omegahat.

Uwe Ligges
Jason Rupert wrote:
#
Jason Rupert wrote:
ROctave appears to be an Omegahat package-- and a rough one at that as it
has not been loaded onto the Omegahat CRAN-style server.  You can find info
at:

  http://www.omegahat.org/ROctave/

- Charlie

-----
Charlie Sharpsteen
Undergraduate
Environmental Resources Engineering
Humboldt State University
#
There is also this lexicon which might be sufficient to allow you to
rewrite the Octave routine in R:
http://cran.r-project.org/doc/contrib/R-and-octave.txt
On Sat, Nov 14, 2009 at 5:29 PM, cls59 <chuck at sharpsteen.net> wrote:
#
Uwe, 

Thank you for the quick response, but I think I'm missing what is being suggested about the Omegahat site. 

I think I may be overlooking something about that site. 

I tried:
Error in install.packages(ROctave, repos = "http://www.omegahat.org/R") : 
  object 'ROctave' not found

Results were similar to trying the CRAN site, so can you provide any additional hints (I think the caffeine may be fogging my understanding of your previous hint).

I would also be willing to try other alternatives for accessing Octave functionality within R.  I am not locked into any approach at this point, but would really like, if possible to stay in the R environment, but also need to access some of the frequency domain plotting and analysis capability, e.g. bode, nyquist, root locus, etc. offered by Octave.   Given the other analysis and plotting capabilities within R I would likely be switching between the two programs quite a bit so having access to data in a common workspace would really help workflow. 

Thanks again and I guess no more Diet Coke for me today...Cie la vie...





----- Original Message ----
From: Uwe Ligges <ligges at statistik.tu-dortmund.de>
To: Jason Rupert <jasonkrupert at yahoo.com>
Cc: R-help at r-project.org
Sent: Sat, November 14, 2009 4:17:03 PM
Subject: Re: [R] Best advice for connect R and Octave

- It has never been on CRAN.
- A quick Google search suggests it is on Omegahat.

Uwe Ligges
Jason Rupert wrote:
#
Charlie, 

Thank you very much for your reply.  I also read this earlier and noticed this package was contributed in 2002 and not updated since then, so I am afraid it has long since been surpassed by both the R and Octave architectures and not been maintained.  

Thus, I guess my search will continue to try to identify a way to access the frequency domain analysis techniques (bode, nyquist, root locus, etc.) from Octave within R, or I may have to access R from within Octave.  I have not really looked at loading R into Octave in Windows just yet, but I guess that is the next thing to be considered.  

Thank you again for your reply and insights.  



----- Original Message ----
From: cls59 <chuck at sharpsteen.net>
To: r-help at r-project.org
Sent: Sat, November 14, 2009 4:29:18 PM
Subject: Re: [R] Best advice for connect R and Octave
Jason Rupert wrote:
ROctave appears to be an Omegahat package-- and a rough one at that as it
has not been loaded onto the Omegahat CRAN-style server.  You can find info
at:

  http://www.omegahat.org/ROctave/

- Charlie

-----
Charlie Sharpsteen
Undergraduate
Environmental Resources Engineering
Humboldt State University
#
See

http://www.omegahat.org/ROctave/

which offers the source package for download and some documentation that 
is not too promising.

Good luck,
Uwe Ligges
Jason Rupert wrote: