Matthew Landis <lan...@isciences.com> wrote: > Matthew Landis <landis <at> isciences.com> writes: > > ... > > > #+begin_src R :session :results graphics :file regress_session.png :exports > both > > > > plot(x, y, bty = 'n') > > abline(f, lty = 'dashed') > > > > #+end_src > > This code block doesn't work. No error, but no file is created. > > ... > > I actually figured this one out just now. If creating a file in a 'stand > alone' > code block, the default directory is the directory that the org file itself > is > in. However, in a 'session' code block, the default directory is something > else > (R's default?). If I specify the full path to the file in the 'session' code > block, things work better. >
Maybe Windows is doing something different, but on Linux, both plots are produced with no problem, both in the current directory. Nick