From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2KIkMz+alWOWSwEAbAwnHQ (envelope-from ) for ; Sun, 11 Dec 2022 09:52:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KHkNMz+alWNtoQAAauVa8A (envelope-from ) for ; Sun, 11 Dec 2022 09:52:15 +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 1DCFC89EE for ; Sun, 11 Dec 2022 09:52:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4I3M-0001F4-Do; Sun, 11 Dec 2022 03:51:20 -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 1p4I3I-0001Eq-QO for emacs-orgmode@gnu.org; Sun, 11 Dec 2022 03:51:16 -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 1p4I3G-0003F4-0i for emacs-orgmode@gnu.org; Sun, 11 Dec 2022 03:51:16 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7649E240026 for ; Sun, 11 Dec 2022 09:51:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670748671; bh=7aSClGQQe+zQr3HuJnGyXzA0D4a8phkwI73S0I3NFFM=; h=From:To:Cc:Subject:Date:From; b=GHvadl3YE11GudCLn/OZUpsRQQ0Wvu++0vV0yAYr9aM20SF6OHTVcmgaI27NBiLMy d9S+dDlM91/1c+5TyevdHSHtDT+9vpE8C0BwaTsckthtO5oCcwZ40mG3tdUNmHKdrm 2NgE4U+bvKIGQCr7TP2WeZ2Q0YOkPHjr3fUZbmHsTy7jEIgWqnDrULSmq7h3dAc9NZ ThoVQjSIJ3sWGyWBxaMB2dLqhyhYH+YuzbopZdmP/qwz13UPwnOAA1ImY37az3Row8 n97cN6EJQaTC4AiysLckrdhtjhGg1f6OmHATvlpVL9ngTBpnrVxL4GJ75Y7FSBuZD9 4NwlwkT9H9xLA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NVJQ42Dx7z9rxD; Sun, 11 Dec 2022 09:51:07 +0100 (CET) From: Ihor Radchenko To: Johan =?utf-8?Q?Tol=C3=B6?= Cc: Greg Minshall , Jeremie Juste , emacs-orgmode@gnu.org, "Berry, Charles" Subject: [FR] Allow passing nested list structures to variables in src blocks (was: [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: <877cyz4djj.fsf@toloe.se> References: <87wn77mdvk.fsf@toloe.se> <766358.1670208594@archlinux> <87wn74xjv7.fsf@gmail.com> <87bkofh0ir.fsf@localhost> <87sfhqudks.fsf@gmail.com> <87edtantzq.fsf@localhost> <968891.1670503378@archlinux> <87v8mm6oub.fsf@localhost> <877cyz4djj.fsf@toloe.se> Date: Sun, 11 Dec 2022 08:51:02 +0000 Message-ID: <87359mmih5.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670748735; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7aSClGQQe+zQr3HuJnGyXzA0D4a8phkwI73S0I3NFFM=; b=j4im2sape9Aa7pK8BSpAELe6NUU/vlgnCxR2oe588qfEl/dKzmsVUnXq5cQcIvU095iX6C 8awTAqdUI6BXN/MAyIs9GzlE0LEfyFtKg9CSaZX0kfrGGDRUggoCDcedYJJPI6Ki2TEQnr 9RRO0JONjVr88fkxDD6/3ujJ9vYHxxp+BXOXIsapkS4okrr1zyTzHNb0N95URawNbkXuZm ep8CEL9xPS606Ie7oxwHw/vCkQhjVxCfpxShRXUdNVZzJlC6Y+L6DRd2RW2pU2vMdEVE9M irk/1b13V2EBOZOm8oy6s3+gusGCDrdUOUqmGdBHTRnFRyPxeCb19W8Q1uhV/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GHvadl3Y; 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=1670748735; a=rsa-sha256; cv=none; b=mx2C0HnDKfOKuTym1XWHBHotJBtltHECVtphR/gL4IaQnq/PMyfPFLG8TDcgUUfGKDcjfV rIVJEaBcQQmm3zq5lz/SqRs4BH4LnlXEr+N0rqlrnhoT9rDTG6EDJk7/Cf+gdQ/o/Qnfd1 m1TVR+5Hu1bMlMHj0xU2INQGtMr1DfxEXXx8i0R5r8gRpVJpSNJ2RgrC1U4t9p8biCsgAh xma0EGfQv0rm/QzFT1MHqDT5q3Qrq8iZK6ah2/8XW9/Pqz8DW9hD19JGNrp3XvfgQH8t3+ iVZjTqpotNcFe5TT6LSM3z5PkgoOQR2M7F9+Kw1lXlAIa/l5f3ztdZu+H2ltOw== X-Migadu-Spam-Score: -5.86 X-Spam-Score: -5.86 X-Migadu-Queue-Id: 1DCFC89EE X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GHvadl3Y; 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 X-TUID: Wzs5BUVKnKRr Johan Tol=C3=B6 writes: > I do pass org plain lists to R source code blocks which is why I=20 > found the current issue. It is easy enough for me to adapt my R=20 > code whenever there is a change in the way it is handled. It is=20 > unfortunate that it will no longer be possible to access any=20 > nested elements of plain lists but it does not affect me because I=20 > was not using that feature. If necessary, we may adapt the recent idea with list-name[] and allow passing ranges to the lists, similar to tables. What I have in mind: 1. variable=3Dlist-name will assign top-level items as a list (item1 item2 = ...) 2. variable=3Dlist-name[] will allow nesting: ((item1) (item2 (sub-list)) .= ..) 3. variable=3Dlist-name[from:to,...] It will be a new feature, of course. > I think that the output from R source code blocks should be as=20 > close to the example in the org manual as possible. I also think=20 > that the handling within ob-R.el should be as simple as possible.=20 > I do not mind if that means that I have to convert a data.frame=20 > from columns to rows. > > For anyone wondering, you can simply unlist() a data.frame to get=20 > a vector of the columns. I am also in favour of staying as close as possible to the manual. I find converting lists to tables non-intuitive. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at