knitr updated, and the current version 1.15.1 allows the use of more supported engines: an octave is one of them:
library(knitr) names(knit_engines$get()) [1] "awk" "bash" "coffee" "gawk" "groovy" [6] "haskell" "lein" "mysql" "node" "octave" [11] "perl" "psql" "python" "Rscript" "ruby" [16] "sas" "scala" "sed" "sh" "stata" [21] "zsh" "highlight" "Rcpp" "tikz" "dot" [26] "c" "fortran" "fortran95" "asy" "cat" [31] "asis" "stan" "block" "block2" "js" [36] "css" "sql"
To add an octave code in a Rmarkdown laptop, use
```{octave} # Insert your octave code here ```
source share