org-babel-insert-result

org-babel-insert-result is a compiled Lisp function in `ob-core.el'.

(org-babel-insert-result RESULT &optional RESULT-PARAMS INFO HASH INDENT LANG)

Insert RESULT into the current buffer.
By default RESULT is inserted after the end of the
current source block. With optional argument RESULT-PARAMS
controls insertion of results in the org-mode file.
RESULT-PARAMS can take the following values:

replace - (default option) insert results after the source block
replacing any previously inserted results

silent -- no results are inserted into the Org-mode buffer but
the results are echoed to the minibuffer and are
ingested by Emacs (a potentially time consuming
process)

file ---- the results are interpreted as a file path, and are
inserted into the buffer using the Org-mode file syntax

list ---- the results are interpreted as an Org-mode list.

raw ----- results are added directly to the Org-mode file. This
is a good option if you code block will output org-mode
formatted text.

drawer -- results are added directly to the Org-mode file as with
"raw", but are wrapped in a RESULTS drawer, allowing
them to later be replaced or removed automatically.

org ----- results are added inside of a "#+BEGIN_SRC org" block.
They are not comma-escaped when inserted, but Org syntax
here will be discarded when exporting the file.

html ---- results are added inside of a #+BEGIN_HTML block. This
is a good option if you code block will output html
formatted text.

latex --- results are added inside of a #+BEGIN_LATEX block.
This is a good option if you code block will output
latex formatted text.

code ---- the results are extracted in the syntax of the source
code of the language being evaluated and are added
inside of a #+BEGIN_SRC block with the source-code
language set appropriately. Note this relies on the
optional LANG argument.