Function: org-babel-graphical-output-file

org-babel-graphical-output-file is a byte-compiled function defined in ob-core.el.gz.

Signature

(org-babel-graphical-output-file PARAMS)

Documentation

File where a babel block should send graphical output, per PARAMS.

Return nil if no graphical output is expected. Raise an error if the output file is ill-defined.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-core.el.gz
(defun org-babel-graphical-output-file (params)
  "File where a babel block should send graphical output, per PARAMS.
Return nil if no graphical output is expected.  Raise an error if
the output file is ill-defined."
  (let ((file (cdr (assq :file params))))
    (cond (file (and (member "graphics" (cdr (assq :result-params params)))
		     file))
	  ((assq :file-ext params)
	   (user-error ":file-ext given but no :file generated; did you forget \
to name a block?"))
	  (t (user-error "No :file header argument given; cannot create \
graphical result")))))