emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Esteban Venialgo <tetumetal@posteo.net>
To: William Denton <william@williamdenton.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: R session error (org-babel)
Date: Wed,  6 Mar 2024 10:58:56 +0000	[thread overview]
Message-ID: <20240306105856.zxa6rs7swpez4a77@amd_server> (raw)
In-Reply-To: <_Jkfyu_SinEMpuWNeI1wP3iSqMaYrUIEFXimSJ6FeBGTKuwPycCt7oDk4eI36otevGGK6alc8Di30Sj9lo5LLIaU73GZBhPBnS5ttmkGksY=@williamdenton.org>

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	other threads:[~2024-03-06 10:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-05 14:12 R session error (org-babel) Esteban Venialgo
2024-03-06  6:21 ` William Denton
2024-03-06 10:58   ` Esteban Venialgo [this message]
2024-03-07  0:30     ` William Denton
2024-03-19 15:45       ` Esteban Venialgo
2024-03-06 10:42 ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240306105856.zxa6rs7swpez4a77@amd_server \
    --to=tetumetal@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=william@williamdenton.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).