Re: [ESS] Possible problem with Org 9.6?

2022-12-02 Thread Colin Baxter via ESS-help
> William Denton via ESS-help  writes:

> On 2 December 2022, Colin Baxter wrote:
>> I have now used your set-up, exactly I think, using "emacs-28.2
>> -q" and the latest ESS and I still cannot reproduce your
>> error. For me, the src source block gives the expected
>> result. I'm stuck!

> Strange!  But it's been fixed in Org, so whatever caused it can
> remain a mystery.

Excellent. I'm pleased R + org are now working to your satisfaction.

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Possible problem with Org 9.6?

2022-12-02 Thread William Denton via ESS-help

On 2 December 2022, Colin Baxter wrote:


I have now used your set-up, exactly I think, using "emacs-28.2 -q" and
the latest ESS and I still cannot reproduce your error. For me, the src
source block gives the expected result. I'm stuck!


Strange!  But it's been fixed in Org, so whatever caused it can remain a 
mystery.  R and Org are back to working nicely (except for a problem with images 
not being refreshed, but that's to do with images generally, not just R).


  commit 4564627415b1e609ac6e92b33d51c8e427c1 (origin/bugfix)
  Author: Ihor Radchenko 
  Date:   Fri Dec 2 13:57:14 2022 +0800

  org-babel-comit-with-output: Fix when prompt is emitted partially

  * lisp/ob-comint.el (org-babel-comint-with-output): Do not rely on
  output filter when detecting prompt lines.  Search for
  `comint-prompt-regexp' in the full output after applying the filter.
  This is needed when the filter is supplied with partial prompts.

Cheers,

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Possible problem with Org 9.6?

2022-12-02 Thread Colin Baxter via ESS-help
Dear William,

> William Denton via ESS-help  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/msg1.html

I have now used your set-up, exactly I think, using "emacs-28.2 -q" and
the latest ESS and I still cannot reproduce your error. For me, the src
source block gives the expected result. I'm stuck!

Best wishes,

Colin Baxter.

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Possible problem with Org 9.6?

2022-12-02 Thread Colin Baxter via ESS-help


Ok, it's not ob-R. If I load ob-R I still get 

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

#+Results[5cafbcfc3677a0d07c696e39397c23e61ba0c021]:
: [1] 2 3 4

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Possible problem with Org 9.6?

2022-12-02 Thread Colin Baxter via ESS-help
Hello William,
> William Denton via ESS-help  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/msg1.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
(org-babel-do-load-languages
'org-babel-load-languages
'(
(R . t)
;; Other settings
))
#+end_src

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

Best wishes,

Colin Baxter.

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Possible problem with Org 9.6?

2022-12-01 Thread William Denton via ESS-help

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/msg1.html


Thanks,

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Possible problem with Org 9.6?

2022-12-01 Thread Colin Baxter via ESS-help
> Colin Baxter via ESS-help  writes:

> William Denton via ESS-help  writes:
>> On 30 November 2022, Frederic Santos via ESS-help wrote:
>>> 1) Can anyone reproduce the bug using the same Org and ESS
>>> versions?

>> Confirmed: no output from the R code block.

>>> 2) If so, any clue? :)

>> Not from me, I'm afraid.


> Nor me. I get

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

> #+Results[5cafbcfc3677a0d07c696e39397c23e61ba0c021]: : [1] 2 3 4


> using Org mode version 9.6 (release_9.6-6-gd500b4) and
> emacs-30.0.50.

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?

Best wishes,

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Possible problem with Org 9.6?

2022-12-01 Thread Colin Baxter via ESS-help
> William Denton via ESS-help  writes:

> On 30 November 2022, Frederic Santos via ESS-help wrote:
>> 1) Can anyone reproduce the bug using the same Org and ESS
>> versions?

> Confirmed: no output from the R code block.

>> 2) If so, any clue? :)

> Not from me, I'm afraid.


Nor me. I get

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

#+Results[5cafbcfc3677a0d07c696e39397c23e61ba0c021]:
: [1] 2 3 4


using Org mode version 9.6 (release_9.6-6-gd500b4) and emacs-30.0.50.

Best wishes,

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Possible problem with Org 9.6?

2022-11-30 Thread William Denton via ESS-help

On 30 November 2022, Frederic Santos via ESS-help wrote:


1) Can anyone reproduce the bug using the same Org and ESS versions?


Confirmed: no output from the R code block.


2) If so, any clue? :)


Not from me, I'm afraid.


Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help