From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wAGQMGW+6WXaeAAAqHPOHw:P1 (envelope-from ) for ; Thu, 07 Mar 2024 14:17:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id wAGQMGW+6WXaeAAAqHPOHw (envelope-from ) for ; Thu, 07 Mar 2024 14:17:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nFNg3n9w; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709817445; a=rsa-sha256; cv=none; b=ZxtpCD9Hul762NyXhdUZfjQXCeAkfY655jTytnM3+0Wizb7HWRTPhLUDlfmM9m9W0eTOng dQLaRDm6q66AYOlNto0TJzImIc/FR8qYL6l4XcIZdpWxrykKCtk3RIcBtwCAi6DfBvBs/y /HXpZAtm7c7NnBpNcq5rWbrAy6V8tTMrFVNCpBgsZUEGc5EhTqSaY4eLixoKE13Lq8d6tl FnLn8X9oDVoFSCUysyvW2p+s2h38yxG8P3tdn9qNjRH+/6HsZ+anNeRgaYPVpVTYiZ8/9W NcCsgBueW1pQUSyZfmnev2Ll3P/qJfFT48AqbEhTO13mFvjTe2905/nEBvmuYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nFNg3n9w; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709817445; 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=EjjjNMnT0mdXLLcB1VYPsRMzE44a7nNHNC1fwItKU4A=; b=HzEB/fnHnbEOnkvAnsHzPqpyR7wD6BjNeuLA9brpj9P1eQJZ0lkLv0W6IRItlmLgiS2Z1a NpZ7U3IHvFhrCwW1DLj2nMy4yoR1oIMwk1xHa0+kV3rqhlWKYu+cFHyUyru0MAOS3+9YLT y7NQz5oVaBe7/JU0RZynax24fdrB10du7j1756FwRQLxDx4soyVJ86PxHJU09x9+62f9RH s/9EiO4W7TMTPVo3Y2I7jWVnWZK47FbFjz2W6LttB+fnfE+Qvdoil3donAArUoR5iRXaeH yw9Cy1xojfLGzldMJq5Fwi02QXyMlEBzYv1BUncxE+QfFROs+FJq/Fel50oUYA== 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 A61E09489 for ; Thu, 7 Mar 2024 14:17:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riDbz-000395-LY; Thu, 07 Mar 2024 08:16:41 -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 1riDbo-0002wb-Pg for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 08:16:33 -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 1riDbm-0003bW-DJ for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 08:16:28 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4C51E240104 for ; Thu, 7 Mar 2024 14:16:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709817383; bh=sBesDRX5hPkcCqr5GtS9E80Fb+/UsdLuM4xTrJXVf6Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=nFNg3n9wThCAAMCMOV7i/Lqobabe1xolU/H6zNnKIlFAglVsanp3kv8c+6JJN1F/R KzGO9fxi3h6AQ5PYXdLaR+TVZQuulVR4c4B3PSTujadso0eAI1iuevrQzZ2h+wqUML lXlerjWYIzNN8ZzCGPfxsh/vTPsq8smaXYLzQbnQ+WEED9H/NqAPjyeWoitSjx6zF5 JtXqOcl7y7ZjBCRKsUhHEkILryFBj/PAcdTxMJFHKs0ALKqCnSgAXbHSPam05EqK5+ GbXIbcsGnuMEkx+FRHxyxocUkoSXtWuQbQReLkw9baYVJABg/FuM4FESuUSEIt8F6A YNp2K8AU5vaPw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Tr8vV221Fz9rxV; Thu, 7 Mar 2024 14:16:22 +0100 (CET) From: Ihor Radchenko To: Paul Stansell Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] With R using ":var d=data" breaks ":colnames yes" [9.7-pre (release_9.6.10-881-g595a32] In-Reply-To: References: Date: Thu, 07 Mar 2024 13:20:28 +0000 Message-ID: <87wmqexjoj.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.66; envelope-from=yantar92@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-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-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -7.23 X-Spam-Score: -7.23 X-Migadu-Queue-Id: A61E09489 X-TUID: 5RqIqZdZ9dqs Paul Stansell writes: > It seems that using ":var d=3Ddata" breaks ":colnames yes" in the header = of > an R code block. > ... > #+name: data > |--------+--------| > | x | y | > |--------+--------| > | 111.89 | 88.37 | > | 392.12 | 297.33 | > |--------+--------| It is expected. :colnames yes implies: The =E2=80=98colnames=E2=80=99 header argument accepts =E2=80=98yes=E2= =80=99, =E2=80=98no=E2=80=99, or =E2=80=98nil=E2=80=99 values. The default value is =E2=80=98nil=E2=80=99: if an input table= has column names--because the second row is a horizontal rule--then Org removes the column names, processes the table, puts back the column names, and then writes the table to the results block. Using =E2=80=98yes=E2=80=99, Org does the same to the first row, even if the= initial ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ table does not contain any horizontal rule. When set to =E2=80=98no= =E2=80=99, Org does not pre-process column names at all. In your table, the first row is a horizontal line, so Org tries to parse the first line as column names. And fails, of course. I guess that we can make `org-babel-get-colnames' smarter and make it skip the leading hlines. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at