emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* R session error (org-babel)
@ 2024-03-05 14:12 Esteban Venialgo
  2024-03-06  6:21 ` William Denton
  2024-03-06 10:42 ` Ihor Radchenko
  0 siblings, 2 replies; 6+ messages in thread
From: Esteban Venialgo @ 2024-03-05 14:12 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-03-19 15:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2024-03-07  0:30     ` William Denton
2024-03-19 15:45       ` Esteban Venialgo
2024-03-06 10:42 ` Ihor Radchenko

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).