emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R session error (org-babel)


From: Esteban Venialgo
Subject: Re: R session error (org-babel)
Date: Wed, 6 Mar 2024 10:58:56 +0000

hi Bill,

I tried the =emacs -Q=, and still get the same problem. Before exporting the 
code, I ran this lisp from the scratch pad:

;; enable language support for R
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   (shell . t)
   (latex . t)
   (emacs-lisp . nil)))

(setq load-path '("~/.emacs.d/lisp/" "/etc/emacs" "/usr/share/emacs/site-lisp" 
"/usr/share/emacs/site-lisp/auctex" "/usr/share/emacs/site-lisp/auto-complete" 
"/usr/share/emacs/site-lisp/color-theme" 
"/usr/share/emacs/site-lisp/company-mode" "/usr/share/emacs/site-lisp/counsel" 
"/usr/share/emacs/site-lisp/dictionary" "/usr/share/emacs/site-lisp/elpy" 
"/usr/share/emacs/site-lisp/ess" 
"/usr/share/emacs/site-lisp/highlight-indentation" 
"/usr/share/emacs/site-lisp/ivy" "/usr/share/emacs/site-lisp/lua-mode" 
"/usr/share/emacs/site-lisp/matlab" "/usr/share/emacs/site-lisp/org-mode" 
"/usr/share/emacs/site-lisp/popup" "/usr/share/emacs/site-lisp/python-mode" 
"/usr/share/emacs/site-lisp/pyvenv" "/usr/share/emacs/site-lisp/s" 
"/usr/share/emacs/site-lisp/site-gentoo.d" "/usr/share/emacs/site-lisp/swiper" 
"/usr/share/emacs/site-lisp/which-key" "/usr/share/emacs/site-lisp/xclip" 
"/usr/share/emacs/site-lisp/yasnippet" 
"/usr/share/emacs/site-lisp/color-theme/themes" "/usr/share/emacs/29.2/lisp" 
"/usr/share/emacs/29.2/lisp/vc" "/usr/share/emacs/29.2/lisp/use-package" 
"/usr/share/emacs/29.2/lisp/url" "/usr/share/emacs/29.2/lisp/textmodes" 
"/usr/share/emacs/29.2/lisp/progmodes" "/usr/share/emacs/29.2/lisp/play" 
"/usr/share/emacs/29.2/lisp/org" "/usr/share/emacs/29.2/lisp/nxml" 
"/usr/share/emacs/29.2/lisp/net" "/usr/share/emacs/29.2/lisp/mh-e" 
"/usr/share/emacs/29.2/lisp/mail" "/usr/share/emacs/29.2/lisp/leim" 
"/usr/share/emacs/29.2/lisp/language" 
"/usr/share/emacs/29.2/lisp/international" "/usr/share/emacs/29.2/lisp/image" 
"/usr/share/emacs/29.2/lisp/gnus" "/usr/share/emacs/29.2/lisp/eshell" 
"/usr/share/emacs/29.2/lisp/erc" "/usr/share/emacs/29.2/lisp/emulation" 
"/usr/share/emacs/29.2/lisp/emacs-lisp" "/usr/share/emacs/29.2/lisp/cedet" 
"/usr/share/emacs/29.2/lisp/calendar" "/usr/share/emacs/29.2/lisp/calc" 
"/usr/share/emacs/29.2/lisp/obsolete"))

btw, what emacs version are you using? and OS? Also, when you exported the 
code, did you set up org-babel-load-languages to run R?

My system details are:
Gentoo Linux
I tried GNU Emacs 29.2 and 28.2
org-mode version 9.6.17

   Thanks for your help, 





On 2024-03-06 06:21:10, William Denton wrote:
> On Tuesday, March 5th, 2024 at 09:12, Esteban Venialgo <tetumetal@posteo.net> 
> wrote:
> 
> > I'm a newbie with org-babel, but I think I'm facing a bug for R code 
> > execution. Basically, I have a simple code for testing:
> > 
> > #+begin_src R :session test
> > A = 1
> > #+end_src
> > 
> > I get a lisp error when I try to export this code to latex. Also, if I 
> > remove the session name "test", the code will run in the second attempt. 
> > I'm using Emacs version 28.2 and org-mode version 9.6.17.
> 
> I can't help understand the error message, but I did try the R sample and 
> have no problem running it and exporting it.  I suspect it might be something 
> about your local setup.  Could you try starting with =emacs -Q= and loading 
> in Org and enough else to run the R snippet?  How to get started with that is 
> here:
> 
> https://orgmode.org/manual/Feedback.html
> 
> It doesn't cover getting R working, but we can help with that.  I can look 
> for a snippet of code if you need one.
> 
> Cheers,
> 
> Bill
> 
> --
> William Denton
> https://www.miskatonic.org/
> Librarian, artist and licensed private investigator.
> Toronto, Canada
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]