From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iOYbB7+pkWMEIwAAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 10:09:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SEMxB7+pkWPrLgEA9RJhRA (envelope-from ) for ; Thu, 08 Dec 2022 10:09:19 +0100 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 CE5D837A17 for ; Thu, 8 Dec 2022 10:09:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3Ct2-0004P4-AX; Thu, 08 Dec 2022 04:08:15 -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 1p3Css-0004Oc-Kb for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 04:08:02 -0500 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 1p3Csq-0005LM-GN for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 04:08:02 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9B3F6240029 for ; Thu, 8 Dec 2022 10:07:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670490477; bh=x3Ckg8ruXwAxdPOIFk5KgdV6weq1p8MRHMp+s6/hUts=; h=From:To:Cc:Subject:Date:From; b=Y5n6Tdr5cZIyUQa2u0wwfYqAg8QvyqTn0Dgyl599wUiCpniWA4vkbk3Ge2yrY+FsR 7Cy80rwHr0ZtifPHpSeimecGKYOv1dO1PNpp4WBPz6z616F/jv5xH7KSLRpggcE8/U CuGt07qKE85GSQ4DciQq4MudTaqrVVLpO/uYWy/u22a07JAqTbDwS0dG4yn089S4WI I48FEd9TtkPzO8T7GMV7R21VIYVBwH+ZRzqdGN+oqapm8nkFy8g7lsPjZ8UUe2bep9 Qk7tEvVNjWknAUfyaGqosUpB+sgHzAo7YZ9AooZ3iJ09XrCH2givOvA3Uu3qES1QY0 PFp2x4ZmYOPEQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NSSwr19h8z6tmG; Thu, 8 Dec 2022 10:07:56 +0100 (CET) From: Ihor Radchenko To: Jeremie Juste Cc: Greg Minshall , Johan =?utf-8?Q?Tol=C3=B6?= , emacs-orgmode@gnu.org, "Berry, Charles" Subject: Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)] In-Reply-To: <87sfhqudks.fsf@gmail.com> References: <87wn77mdvk.fsf@toloe.se> <766358.1670208594@archlinux> <87wn74xjv7.fsf@gmail.com> <87bkofh0ir.fsf@localhost> <87sfhqudks.fsf@gmail.com> Date: Thu, 08 Dec 2022 09:07:53 +0000 Message-ID: <87edtantzq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670490559; 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=O3qoW2itdGOrnoM7WNqqwMr6TJ8AEHCp/yJQwmLSK6I=; b=UyhDcRdYrLWSfd2kFPQVIJYC67JACBzQrDk3hn5/LxlWknuaP9XIBPK6qUh+RUO3fc1xd/ /hq613+UfB/l9bRjPCsB7UwG6XmI1PPXmWh5lJNZjKBjTvTMjO+bdRrJwzGeDtGIS7Aj1C G7yZgkn3zgX7MkdlK8p7otp5F0AzUD0KI6+QK9PGToTm9NHCFcGsLYZ/gJai5tcJWUVGeE a4TgyJXt29lXBl8ehsYJ0vNjzxvwYfdoWanBOU00N0C0DvkWBAYB02MKtsghoZjgTO/lZN 4nls/MHn5zQMBeZ/FmcAEljBU54IgVIDemkBWEs2Qv9SPgXW9NpXkPUYWtq7jg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670490559; a=rsa-sha256; cv=none; b=GiqfDA3py/+BfmORPqzMom34F01OfIqKl8fg6WskvRQQGovpl4yrfixvy+mbPLnadojjbp +tQUj61hMQVPGwrVgYGNHNv3X9PRbnEQGXwdRfHz/EIw0xVHsrJ9sAeBrYzvq+GT0u9lTT 50dZOJOCUcoiGUd4nxo31cRJ8vti8deGQRUTm4dxKlMXlCU2q29m9WzLD98vJwfjiXjpks zTVHrrpLB1d4aSc9209rqFcNIw9miFfW50LEFvzXBRRVlMisdVnHoeuL/yRXHvxZFPzmHY qx0m1XlN+RwTtsK2ogCrAXov2NDYegiA5Lz++/HOsos9jyWakMmtO1tZXNFtGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Y5n6Tdr5; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -3.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Y5n6Tdr5; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: CE5D837A17 X-Spam-Score: -3.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: Sn5g5m/D66Fy Jeremie Juste writes: > Many thanks to you all for your feedback. > From 1ad16ffb9, I have restored the expected output in R. that is. > > > #+NAME: example-list > - simple > - not > - nested > - list > > #+BEGIN_SRC R :var x=example-list > x > #+END_SRC > > #+RESULTS: > | simple | > | list | I am not sure if I like the approach you used in the commit. - (unless (listp (car value)) (setq value (list value))) + (unless (listp (car value)) (setq value (mapcar 'list value))) In the above, you are transforming (val1 val2 val3 ...) list into ((val1) (val2) (val3) ...). Does it make sense from the point of view of R code? AFAIU, the current ob-R implementation converts lists into R tables, which is not accurate? Would it make sense to convert Elisp lists into R lists directly? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at