From: Esteban Venialgo <tetumetal@posteo.net>
To: emacs-orgmode@gnu.org
Subject: R session error (org-babel)
Date: Tue, 5 Mar 2024 14:12:25 +0000 [thread overview]
Message-ID: <20240305141225.6suoc47623o4pvm5@dcs_server> (raw)
hi Org-people,
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. The lisp error log is bellow:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
org-babel-R-initiate-session("test" ((:colname-names) (:rowname-names) (:result-params "silent" "replace") (:result-type . value) (:results . "silent") (:exports . "code") (:session . "test") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "no")))
org-babel-execute:R("A = 1" ((:colname-names) (:rowname-names) (:result-params "silent" "replace") (:result-type . value) (:results . "silent") (:exports . "code") (:session . "test") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "no")))
org-babel-execute-src-block(nil ("R" "A = 1" ((:colname-names) (:rowname-names) (:result-params "silent" "replace") (:result-type . value) (:results . "silent") (:exports . "code") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no") (:session . "test")) "" nil 1 "(ref:%s)"))
org-babel-exp-results(("R" "A = 1" ((:colname-names) (:rowname-names) (:result-params "replace") (:result-type . value) (:results . "replace") (:exports . "code") (:session . "test") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "no")) "" nil 1 "(ref:%s)") block silent)
#f(compiled-function (info type) #<bytecode 0x1236972de089e4fb>)(("R" "A = 1" ((:colname-names) (:rowname-names) (:result-params "replace") (:result-type . value) (:results . "replace") (:exports . "code") (:session . "test") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "no")) "" nil 1 "(ref:%s)") block)
org-babel-exp-do-export(("R" "A = 1" ((:colname-names) (:rowname-names) (:result-params "replace") (:result-type . value) (:results . "replace") (:exports . "code") (:session . "test") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "no")) "" nil 1 "(ref:%s)") block nil)
org-babel-exp-src-block((src-block (:language "R" :switches nil :parameters ":session test" :begin 1 :end 47 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value " A = 1\n" :post-blank 0 :post-affiliated 1 :mode top-comment :granularity element :cached t :parent (section (:begin 1 :end 47 :contents-begin 1 :contents-end 47 :robust-begin 1 :robust-end 45 :post-blank 0 :post-affiliated 1 :mode first-section :granularity element :cached t :parent (org-data (:begin 1 :contents-begin 1 :contents-end 47 :end 47 :robust-begin 3 :robust-end 45 :post-blank 0 :post-affiliated 1 :path "/home/esteban/test.org" :mode org-data :CATEGORY "test" :cached t)))))))
org-babel-exp-process-buffer()
org-export-as(latex nil nil nil (:output-file "test.tex"))
org-export-to-file(latex "test.tex" nil nil nil nil nil org-latex-compile)
org-latex-export-to-pdf(nil nil nil nil)
org-export-dispatch(nil)
funcall-interactively(org-export-dispatch nil)
call-interactively(org-export-dispatch record nil)
command-execute(org-export-dispatch record)
counsel-M-x-action("org-export-dispatch")
ivy-call()
ivy-read("M-x " [ess-create-temp-buffer table--measure-max-width vc-src-responsible-p calendar-forward-week tramp-sudoedit-file-name-handler tramp-completion-handle-file-name-all-completions Set\ Slice make-mode-line-mouse-map table-source-caption-history Reduce\ To:\ to\ Cc: ido-prev-match help-follow-symbol ess-long+replacement japanese-hiragana-two-byte gnus-article-nndoc-name org-export-before-processing-functions rng-parse-validate-file senator-eldoc-use-color speedbar-file-regexp ess-keyword-face org-table--descriptor-line Rnw-mode message-expand-name-databases info--manual-names 0 nnoo-map-functions gnus-try-warping-via-registry compilation-error-list displ-string *table--cell-kill-paragraph :odt-styles-file vc-annotate all-packs org-table-get-range vc-bzr-shelve-menu rng-match-infer-start-tag-namespace 0 org-agenda-regexp-filter-preset gnus-summary-limit-to-marks org-agenda-menu-show-matcher hs-toggle-hiding 0 article-fill-long-lines smime-buffer-as-string-region org-get-org-file check-declare Info-breadcrumbs counsel--async-filter bibtex-text-in-string ! ...] :predicate #f(compiled-function (sym) #<bytecode 0x1118fc3e44c23476>) :require-match t :history counsel-M-x-history :action counsel-M-x-action :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
counsel-M-x()
funcall-interactively(counsel-M-x)
call-interactively(counsel-M-x nil nil)
command-execute(counsel-M-x)
Thanks for your help, tetumetal
next reply other threads:[~2024-03-05 17:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-05 14:12 Esteban Venialgo [this message]
2024-03-06 6:21 ` R session error (org-babel) William Denton
2024-03-06 10:58 ` Esteban Venialgo
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240305141225.6suoc47623o4pvm5@dcs_server \
--to=tetumetal@posteo.net \
--cc=emacs-orgmode@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.