On Friday, 23 Mar 2018 at 07:55, stardiviner wrote: > I got the following error after executing src block: > > ``` > > error: invalid call to script /usr/share/octave/4.2.2/m/help/ans.m I see the same. Not sure why this is happening but you can fix it but adding any line after the saveas statement that would generate a value, e.g. just a "1" will do: #+begin_src org ,#+begin_src octave :results file :dir "data/images" :file "figure1.png" clf (); surf (peaks); saveas (1, "figure1.png"); 1 ,#+end_src #+end_src -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-341-g3a4fd3