【发布时间】:2019-12-18 19:34:48
【问题描述】:
我已经尝试了此页面中的所有四个源块:https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html
* does /not/ produce a file
#+begin_src R :file 1.png :results value graphics
library(lattice)
xyplot(1:10 ~ 1:10)
#+end_src
* does produce a file, by printing object
#+begin_src R :file 2.png :results value graphics
library(lattice)
print(xyplot(1:10 ~ 1:10))
#+end_src
* does produce a file, by using :results output
#+begin_src R :file 3.png :results output graphics
library(lattice)
xyplot(1:10 ~ 1:10)
#+end_src
* does produce a file, by evaluating in :session
#+begin_src R :file 4.png :session :results graphics
library(lattice)
xyplot(1:10 ~ 1:10)
#+end_src
尽管图像仍然保存为 1.png、2.png 等,但它们都没有输出任何内容。
R 肯定是启用的,因为我已经将它用于不需要可视化的其他事情。
【问题讨论】: