(options: string[], code: string[])
| 24 | } |
| 25 | |
| 26 | function makeRArgs(options: string[], code: string[]) { |
| 27 | const codeArgs: string[] = []; |
| 28 | for (const line of code) { |
| 29 | codeArgs.push('-e'); |
| 30 | codeArgs.push(line); |
| 31 | } |
| 32 | const args = options.concat(codeArgs); |
| 33 | return args; |
| 34 | } |
| 35 | |
| 36 | const defaultOptions: string[] = ['--no-echo', '--no-restore']; |
| 37 | const rtasks: RTaskInfo[] = [ |