From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id IDj3D5Cy+WUBpgAA62LTzQ:P1 (envelope-from ) for ; Tue, 19 Mar 2024 16:43:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id IDj3D5Cy+WUBpgAA62LTzQ (envelope-from ) for ; Tue, 19 Mar 2024 16:43:12 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iPy7eapP; 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=1710862992; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=V/4HfTDBy1b+SRW6qpJbHkHBtIE2Flpk/+A2FOD4+gU=; b=FRMmdtiGoZCm/l/jeR72HRTyyWsm0UcmCl0xdl+i88tMJilgeCez/JTzgcniEvoqQQ6Jst hVeMWnkZTTPyrsN1wkoL0J6UDOjoOtS/Cu+ljHYJJ7xwGhy3/3wnQYXIHUTzhmtpzEPfJF Lu73yrjnKmyR11J0HI5Pe5U2PvG4YOBLFR//DyrPHLFHhLN+LqlouYOIu1O8+crTKjxo2J wp+j+byB7B2vof8gtBwebDO8tR0eNyMP+aA7LVIJJASgHrSx7qHbMchtT/IHlYZRVWuNOn hyX4iS0xSkgStTY4PcXNQYUBa6n2dNt+P1qXNAylt5W63LaCQss8dzBgyVOpdw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iPy7eapP; 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=1710862992; a=rsa-sha256; cv=none; b=nDUpybHdV3+sxMVfLV25ntvIx1Iq2ssvwN6OHbWWXrFgicbBZM6BYGtpvWZomH0SedPYl6 nfJiSjkakVLLp7dQZ1RRaO8bxEPpXXWlmCL7lWsCpM9R62cYs/HzdplxsphVXzxN5Sy5NK hvjCFNsecL9tSPbtI7eUl+caePLUa4DkcmIfODWiQK7J/C3C71qrPCmnYGrd50Kjgskful e/n9HeGzrwaASeSBrmR7149uhX/4d0Pu8YoE0jZ6gMfMImv1h6lIEvJIDbwwsHxEb8Hkm+ nk1u6Lb4uFzhsj7TlKTFz0mzpFEg05x364+/2mgANtbT3CezGRKDE7Giap/f2Q== 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 09AC41598D for ; Tue, 19 Mar 2024 16:43:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmbbf-0004cf-Tx; Tue, 19 Mar 2024 11:42:27 -0400 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 1rmbbd-0004cR-LQ for emacs-orgmode@gnu.org; Tue, 19 Mar 2024 11:42:25 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmbba-0004gR-BL for emacs-orgmode@gnu.org; Tue, 19 Mar 2024 11:42:24 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7C620240027 for ; Tue, 19 Mar 2024 16:42:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710862937; bh=gP0jKj0A8wUbCjrhC9h2wqNoR8BVqy5Wzem5BjfJPFU=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:From; b=iPy7eapPThNguGF1dILCKUSsa8dQGkriRY8N0dUr7nZBwidEdqtSsgz3IUC0JwIIe P+JvgnLDOTJpIaetRkFmoV7Bs3EeVa8gcm4HOls8mWiQA2v2jAIzWgHAIPufLDkoaZ HKSV6rcJ/2ZEwL7VWnVfdz6NHVo4vL+dZwCJoJ3qOMIQx2GXgqi3TAC2z+/xWkG7ZB uet0DhClOANcsI4alQqcoNTMRmMpwYP1TMxtIEVWjNxup6Ls+HZEDx3JpD5unXctap JHX6K19j2Zr5dXllHNqUZUZXK+QKRI33tAztv0JCr0uhW5bA6blsF4E2wYxC6hSE9n mftcFZTTbj+ew== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TzbZJ6bjbz6tx5; Tue, 19 Mar 2024 16:42:16 +0100 (CET) Date: Tue, 19 Mar 2024 15:45:15 +0000 From: Esteban Venialgo To: William Denton Cc: emacs-orgmode@gnu.org Subject: Re: R session error (org-babel) Message-ID: <20240319154515.knjurfbsy7v2x27g@amd_server> References: <20240305141225.6suoc47623o4pvm5@dcs_server> <_Jkfyu_SinEMpuWNeI1wP3iSqMaYrUIEFXimSJ6FeBGTKuwPycCt7oDk4eI36otevGGK6alc8Di30Sj9lo5LLIaU73GZBhPBnS5ttmkGksY=@williamdenton.org> <20240306105856.zxa6rs7swpez4a77@amd_server> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=185.67.36.65; envelope-from=tetumetal@posteo.net; helo=mout01.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_H3=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-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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.49 X-Spam-Score: -9.49 X-Migadu-Queue-Id: 09AC41598D X-Migadu-Scanner: mx13.migadu.com X-TUID: dc8D4MS3SAKR hi William and Ihor, Apologies for the late answer. I did some test on ESS and indeed that was the problem: I was using: org version 9.6.17 and ess-version: 18.10.2. But, after I updated Gentoo (last weekend), the R code export worked fine! The current ESS version is: 24.01.1 and the org-version is the same. Thanks a lot for your help, Tetumetal On 2024-03-07 00:30:03, William Denton wrote: > On Wednesday, March 6th, 2024 at 05:56, Esteban Venialgo wrote: > > > 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))) > > Hmm! It does work for me. I'm on Ubuntu 22.04, running Emacs and Org from the development tree (so 30.0.50 and 9.7-pre). > > I ran =emacs -Q= (and also =make repro= from in the Org source tree, which is another useful tool for testing), and executed these lines in a scratch buffer: > > # ----- > (org-babel-do-load-languages 'org-babel-load-languages '( > (R . t) > (shell . t) > )) > (add-to-list 'load-path "~/.emacs.d/elpa/ess-20240229.2054") > (require 'ess-r-mode) > # ----- > > We're the same up to ESS. (I had to check the version number on ESS to get the path right, but that's the latest release installed.) Looking back, did you not mention using ESS? I've never used R in Emacs without it. If you weren't using ESS, what happens if you install it and use it? > > Just for the sake of documentation: then I made an r.org file with the snippet and ran it, and it worked: > > # ---- > #+begin_src R :session test > A <- 1 > #+end_src > #---- > > > Cheers, > > Bill > > -- > William Denton > https://www.miskatonic.org/ > Librarian, artist and licensed private investigator. > Toronto, Canada