我已经尝试了这个页面上的所有四个源代码块: 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,因为我已经用它做了其他不需要可视化的事情。