From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eJWrBdpX52UNcwAAqHPOHw:P1 (envelope-from ) for ; Tue, 05 Mar 2024 18:35:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eJWrBdpX52UNcwAAqHPOHw (envelope-from ) for ; Tue, 05 Mar 2024 18:35:22 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WvsjLFNn; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709660122; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Lwa0B1MuJlRpFrik+uvAJ2acWpHip2PSaecgA0KmbLQ=; b=gALtVDEX/0xtsLSQqJIlXakApMeODMt199mDLhuZ9dITFh8V2D92ab7Szt1+Q8t8XmNXV3 jEjPCGmuUHASnkFsG9f6qtSoxwEsVMi0QPL5Ar6rjufBfYSg8iIisUmLYZiFbcScgBLwA+ OlnBLTmhbKYCHfc/PpfcsHfaSfZJ255uObp694ixYKuGCLuTwYhSGoMsVDb565dMEYLnSq dZ1Z4fTfdN1iXWjq7kqWGvPle9jnbn7KRDMG3RBfv0RFYgdpsNCLjVkE8talrqRstPahQr HKl/iOLOXlYagwk57W/tbUcMI5FgxrjtdUtmP3oGt9pRFiDJ9HKKWpWvv8yg+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WvsjLFNn; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709660122; a=rsa-sha256; cv=none; b=TlrjeXvOX3yFqnROQCulmTbrOwprAwQKTCMyLoN+FVkvECw1I1gP4FOxIZhmEcgYBptZhl lCitet3/tTjsrgTUrvnPzdVkmXeMudh3zLaoGtrqslD4Fllde+sM73qjLe/pPNz1i7b/vq whoneIILHLwKR+KxVjo2tJCv4NKqd1BLy8mA3OtgOSBlcWHtyh2wm2IizVq2fD5CFmS0Lw B5Jj9KlRnL8XujfsCT4YxIUThMbG8Xl7uu4y20CVp8F+QyDJuifhR1j6UgLSgz00Dbl/Ty RwJTLlyF3ZRre+UZqkf4+4eh8fACo7g9CPBSduvovEh8o5qusYyZjSiH+baYzw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8E0E65D0DE for ; Tue, 5 Mar 2024 18:35:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhYgM-0001dE-QD; Tue, 05 Mar 2024 12:34:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhVSl-0002xp-IF for emacs-orgmode@gnu.org; Tue, 05 Mar 2024 09:08:11 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhVSh-0000s2-B3 for emacs-orgmode@gnu.org; Tue, 05 Mar 2024 09:08:11 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id AD4DD240103 for ; Tue, 5 Mar 2024 15:07:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709647675; bh=+yqTDdGMlhJEIZpfV/7QoAmMXpC0G+HFqOhQZNivbik=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:From; b=WvsjLFNnPoQz3sd66d362Aywmo4FQrKnfhrVp9uQ333rbIqnj7F6OeX+v5xtuolXm NFWBPwSpT3F6+h5648KFKvymnoUeBmuFfWb84tucMMmwzzXYfFXoqeSggz/V/pa9Dc R7Ndmd2G/WJjevpYx9VkFUGilFbLOYKuOsqUARn/3Du819cT9sSofWS+fMIm1YgUM7 2DM/qxjZVMT5GK6lQvrtlbwGLp1t6B6KB274ggIbHBhwC+dKKAvP/KEGTFkfCKGuk5 bB7MbMho65+Ji+MLXW6blFx1/lERvklvzDRMjHba4LjtygM1UWVG1gRULehSp6/Z3Q /i9RQkLFTE4ZA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Tpy7v2SRDz6tmv for ; Tue, 5 Mar 2024 15:07:55 +0100 (CET) Date: Tue, 5 Mar 2024 14:12:25 +0000 From: Esteban Venialgo To: emacs-orgmode@gnu.org Subject: R session error (org-babel) Message-ID: <20240305141225.6suoc47623o4pvm5@dcs_server> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=tetumetal@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 05 Mar 2024 12:34:20 -0500 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -9.48 X-Spam-Score: -9.48 X-Migadu-Queue-Id: 8E0E65D0DE X-Migadu-Scanner: mx11.migadu.com X-TUID: fAnK/DmZBYFQ hi Org-people, I'm a newbie with org-babel, but I think I'm facing a bug for R code execut= ion. Basically, I have a simple code for testing: #+begin_src R :session test A =3D 1 #+end_src I get a lisp error when I try to export this code to latex. Also, if I remo= ve the session name "test", the code will run in the second attempt. I'm us= ing Emacs version 28.2 and org-mode version 9.6.17. The lisp error log is b= ellow: 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 . "silen= t") (:exports . "code") (:session . "test") (:tangle . "no") (:hlines . "no= ") (:noweb . "no") (:cache . "no"))) org-babel-execute:R("A =3D 1" ((:colname-names) (:rowname-names) (:result= -params "silent" "replace") (:result-type . value) (:results . "silent") (:= exports . "code") (:session . "test") (:tangle . "no") (:hlines . "no") (:n= oweb . "no") (:cache . "no"))) org-babel-execute-src-block(nil ("R" "A =3D 1" ((:colname-names) (:rownam= e-names) (:result-params "silent" "replace") (:result-type . value) (:resul= ts . "silent") (:exports . "code") (:cache . "no") (:noweb . "no") (:hlines= . "no") (:tangle . "no") (:session . "test")) "" nil 1 "(ref:%s)")) org-babel-exp-results(("R" "A =3D 1" ((:colname-names) (:rowname-names) (= :result-params "replace") (:result-type . value) (:results . "replace") (:e= xports . "code") (:session . "test") (:tangle . "no") (:hlines . "no") (:no= web . "no") (:cache . "no")) "" nil 1 "(ref:%s)") block silent) #f(compiled-function (info type) #)(("R" "A = =3D 1" ((:colname-names) (:rowname-names) (:result-params "replace") (:resu= lt-type . value) (:results . "replace") (:exports . "code") (:session . "te= st") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "no")) "" = nil 1 "(ref:%s)") block) org-babel-exp-do-export(("R" "A =3D 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 :paramete= rs ":session test" :begin 1 :end 47 :number-lines nil :preserve-indent nil = :retain-labels t :use-labels t :label-fmt nil :value " A =3D 1\n" :post-bl= ank 0 :post-affiliated 1 :mode top-comment :granularity element :cached t := parent (section (:begin 1 :end 47 :contents-begin 1 :contents-end 47 :robus= t-begin 1 :robust-end 45 :post-blank 0 :post-affiliated 1 :mode first-secti= on :granularity element :cached t :parent (org-data (:begin 1 :contents-beg= in 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-r= esponsible-p calendar-forward-week tramp-sudoedit-file-name-handler tramp-c= ompletion-handle-file-name-all-completions Set\ Slice make-mode-line-mouse-= map table-source-caption-history Reduce\ To:\ to\ Cc: ido-prev-match help-f= ollow-symbol ess-long+replacement japanese-hiragana-two-byte gnus-article-n= ndoc-name org-export-before-processing-functions rng-parse-validate-file se= nator-eldoc-use-color speedbar-file-regexp ess-keyword-face org-table--desc= riptor-line Rnw-mode message-expand-name-databases info--manual-names 0 nno= o-map-functions gnus-try-warping-via-registry compilation-error-list displ-= string *table--cell-kill-paragraph :odt-styles-file vc-annotate all-packs o= rg-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-men= u-show-matcher hs-toggle-hiding 0 article-fill-long-lines smime-buffer-as-s= tring-region org-get-org-file check-declare Info-breadcrumbs counsel--async= -filter bibtex-text-in-string ! ...] :predicate #f(compiled-function (sym) = #) :require-match t :history counsel-M-x-histo= ry :action counsel-M-x-action :keymap (keymap (67108908 . counsel--info-loo= kup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller co= unsel-M-x) counsel-M-x() funcall-interactively(counsel-M-x) call-interactively(counsel-M-x nil nil) command-execute(counsel-M-x) =20 Thanks for your help, tetumetal