[ESS] Possible problem with Org 9.6?

Colin Baxter m43c@p @end|ng |rom y@ndex@com
Fri Dec 2 12:23:23 CET 2022

Hello William,
>>>>> William Denton via ESS-help <ess-help using r-project.org> writes:

    > On 1 December 2022, Colin Baxter via ESS-help wrote:
    >> My last post was mangled. The "Nor me" referred to a satisfactory
    >> output of the R code - not to "haven't a clue"!
    >> Are you using the latest ESS from git? And have you set the
    >> "ess-startup-directory" to default-directory?

    > I retried with this and still have the problem.  Here's how I did
    > it, with current Org (d500b406fc) and ESS (01e7f5b482) source
    > trees.

    > In the Org source, run "make repro".

    > In the *scratch* buffer, C-x C-e each of these lines (adjust path
    > for ESS source as needed):

    > (add-to-list 'load-path "/usr/local/src/ESS/lisp") (require
    > 'ess-r-mode) (require 'ob-R)

    > Load an Org file with this simple block:

    > #+begin_src R :results output :session *R* x <- 2:4 print(x)
    > #+end_src

    > C-c C-c on the begin line, say yes to executing the code, use the
    > default for the working directory.

    > Results: #+RESULTS line appears, but no output.

    > Change "output" to "value" and it works.  Remove the :session
    > argument and it works.

    > Kill Emacs, execute the Lisp as above, but this time add:

    > (setq ess-startup-directory 'default-directory)

    > Perform the other steps, and #+RESULTS is still empty.

    > I hope this may help narrow it down.  There's some discussion on
    > the Org list about this too:

    > https://lists.gnu.org/archive/html/emacs-orgmode/2022-12/msg00001.html

I'll use your exactly setup later in the day and see if I can
reproduce the problem. In the meanwhile, however, I notice you use
ob-R. I do not. I have never used it. In my ~/.emacs, I just have

#+begin_src emacs-lisp
(R . t)
;; Other settings

This has always worked. So perhaps the issue lies with ob-R, and this is
what I'm missing.

Best wishes,

Colin Baxter.

More information about the ESS-help mailing list