knitr icon indicating copy to clipboard operation
knitr copied to clipboard

Add the RcppOctave engine

Open casallas opened this issue 10 years ago • 3 comments

  • This engine allows to call octave/matlab code within R using RcppOctave

casallas avatar Oct 20 '14 06:10 casallas

Thanks! This is very interesting, but I'd prefer this function to be in RcppOctave instead, since I do not know much about Octave or RcppOctave and I will not be the best person to maintain this engine. If the RcppOctave author is interested, you will only need something like knitr::knit_engines$set(RcppOctave = RcppOctave::eng_RcppOctave), which does not sound too bad.

Of course, I will have to export the function engine_output() from knitr, which I will be happy to do.

yihui avatar Oct 23 '14 02:10 yihui

Sounds good Yihui! I'm not the Octave expert myself, I was mainly looking for a way to revive and post some old MATLAB code. After playing with this for a little while I thought there were some neat possibilities for reports generated combining R and Octave code.

Exporting engine_output will be great for package developers. I can think of a few packages that could benefit from having their own engine, like rPython, to make reports combining R and Python code.

casallas avatar Oct 23 '14 11:10 casallas

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Sep 22 '20 21:09 CLAassistant