Let's say I create an Org document with the following contents:
#+begin_src R :results value
data <- data.frame(list(a=c(1,2), b=c(3,4)))
data
#+end_src
I then type `C-c C-c` to run `org-babel-execute-src-block`, which reports the error "forward-sexp: Wrong type argument: markerp, nil".
The debugger backtrace looks like this:
Debugger entered--Lisp error: (wrong-type-argument markerp nil)
#f(compiled-function () #<bytecode -0xadf27a319dde315>)()
org-babel-insert-result(((1 3) (2 4)) ("replace" "value") ("R" "data <- data.frame(list(a=c(1,2), b=c(3,4)))\ndata" ((:colname-names) (:rowname-names) (:result-params "replace" "value") (:result-type . value) (:results . "replace value") (:exports . "code") (:session . "none") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no")) "" nil 1 "(ref:%s)") nil "R")
org-babel-execute-src-block(nil ("R" "data <- data.frame(list(a=c(1,2), b=c(3,4)))\ndata" ((:colname-names) (:rowname-names) (:result-params "value" "replace") (:result-type . value) (:results . "value replace") (:exports . "code") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "no") (:session . "none")) "" nil 1 "(ref:%s)"))
org-ctrl-c-ctrl-c(nil)
funcall-interactively(org-ctrl-c-ctrl-c nil)
call-interactively(org-ctrl-c-ctrl-c nil nil)
command-execute(org-ctrl-c-ctrl-c)
Any ideas on what could be causing this error and/or how I can track it down?
Fwiw, `:results output` works as intended.