小编Bly*_*way的帖子

R 不在 Org Babel 中输出图形

我已经从这个页面尝试了所有四个源代码块: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) …
Run Code Online (Sandbox Code Playgroud)

r org-mode org-babel

4
推荐指数
1
解决办法
267
查看次数

标签 统计

org-babel ×1

org-mode ×1

r ×1