* Babel save code block results to many files
@ 2016-05-02 20:08 Jeremie Juste
0 siblings, 0 replies; only message in thread
From: Jeremie Juste @ 2016-05-02 20:08 UTC (permalink / raw)
To: emacs-orgmode
Hello,
In the case where a code block generates many grahique, is it possible
to output each graphic to a file direclty?
For example in R you can do something like the following.
png(file="example%02d.png", width=200, height=200)
for (i in c(10:1, "G0!")){
plot.new()
text(.5, .5, i, cex = 6)
}
dev.off()
but the it seems that we don't have direct access to the png function in
org-mode
#+BEGIN_SRC R :results output graphics :file tmp.png
for (i in c(10:1, "G0!")){
plot.new()
text(.5, .5, i, cex = 6)
}
#+END_SRC
Best regards,
Jeremie
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-02 20:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-02 20:08 Babel save code block results to many files Jeremie Juste
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).