knitr
knitr copied to clipboard
Add the RcppOctave engine
- This engine allows to call octave/matlab code within R using RcppOctave
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.
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.
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.