Johan Tolö <jo...@toloe.se> writes:
[snipped]
* Test
:PROPERTIES:
:DIR: build
:END:
#+begin_src R :results output file graphics :file build/test.png
plot(1)
#+end_src
#+RESULTS:
[[attachment:build/test.png]]
The expected result is:
#+RESULTS:
[[attachment:test.png]]
My ob-core.el has in the org-babel-result-to-file function (on
line 2712):
(file-relative-name result-file-name)
I changed it to:
(file-relative-name result-file-name attach-dir)
and got the expected result.
[snipped]
Adding a elisp example that produces the same unwanted behaviour:
* Test
:PROPERTIES:
:DIR: build
:END:
#+begin_src emacs-lisp :results value file
"build/test.png"
#+end_src
#+RESULTS:
[[attachment:build/test.png]]
--
Johan Tolö