Skip to content

Commit

Permalink
Add support for the Octave language (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
aforren1 authored and yihui committed Nov 18, 2016
1 parent dd85151 commit 37a21a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/engine.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ eng_interpreted = function(options) {
)
} else paste(switch(
engine, bash = '-c', coffee = '-e', groovy = '-e', lein = 'exec -e',
mysql = '-e', node = '-e', perl = '-e', psql = '-c', python = '-c',
ruby = '-e', scala = '-e', sh = '-c', zsh = '-c', NULL
mysql = '-e', node = '-e', octave = '--eval', perl = '-e', psql = '-c',
python = '-c', ruby = '-e', scala = '-e', sh = '-c', zsh = '-c', NULL
), shQuote(paste(options$code, collapse = '\n')))

# FIXME: for these engines, the correct order is options + code + file
Expand Down Expand Up @@ -543,8 +543,8 @@ eng_sql = function(options) {
local({
for (i in c(
'awk', 'bash', 'coffee', 'gawk', 'groovy', 'haskell', 'lein', 'mysql',
'node', 'perl', 'psql', 'python', 'Rscript', 'ruby', 'sas', 'scala', 'sed',
'sh', 'stata', 'zsh'
'node', 'octave', 'perl', 'psql', 'python', 'Rscript', 'ruby', 'sas',
'scala', 'sed', 'sh', 'stata', 'zsh'
)) knit_engines$set(setNames(list(eng_interpreted), i))
})

Expand Down

0 comments on commit 37a21a2

Please sign in to comment.