From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WCMJIffIVF/fZAAA0tVLHw (envelope-from ) for ; Sun, 06 Sep 2020 11:33:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UPfwHPfIVF8cRAAAbx9fmQ (envelope-from ) for ; Sun, 06 Sep 2020 11:33:11 +0000 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 BD70F94028F for ; Sun, 6 Sep 2020 11:33:10 +0000 (UTC) Received: from localhost ([::1]:40164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEsux-0005xE-V1 for larch@yhetil.org; Sun, 06 Sep 2020 07:33:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEsuI-0005wv-4i for emacs-orgmode@gnu.org; Sun, 06 Sep 2020 07:32:26 -0400 Received: from mail.choca.pics ([2001:910:1410:500::1]:44688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEsuF-0008Eh-OO for emacs-orgmode@gnu.org; Sun, 06 Sep 2020 07:32:25 -0400 Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 5F61E1818FAF3 for ; Sun, 6 Sep 2020 13:32:09 +0200 (CEST) Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id 6eUC_6bMZCjw for ; Sun, 6 Sep 2020 13:32:09 +0200 (CEST) Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id E3DF318195BEB for ; Sun, 6 Sep 2020 13:32:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at choca.pics Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id 9MQNUPyVFcNm for ; Sun, 6 Sep 2020 13:32:08 +0200 (CEST) Received: from localhost (203.99.92.92.rev.sfr.net [92.92.99.203]) by mail.choca.pics (Postfix) with ESMTPSA id 9B9701819576F for ; Sun, 6 Sep 2020 13:32:08 +0200 (CEST) From: Damien Cassou To: emacs-orgmode@gnu.org Subject: Bug: Babel+R handles spaces wrongly in tables [9.3.6 (release_9.3.6 @ /home/cassou/.emacs.d/lib/org/lisp/)] Date: Sun, 06 Sep 2020 13:32:08 +0200 Message-ID: <87wo172laf.fsf@cassou.me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2001:910:1410:500::1; envelope-from=damien@cassou.me; helo=mail.choca.pics X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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.23 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: kfEN4JAfqDUM --=-=-= Content-Type: text/plain Hi, it seems that, if a cell within a table contains a space, the corresponding value passed as parameter to a R script will be wrong. Please find a very simple org file attached to this email. I expect the length of the variable to be 2 (which is the length of '("A B" "C") and not 3. Apparently, R receives this array instead: '("A B" "C" nil). Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.21, cairo version 1.16.0) Package: Org mode version 9.3.6 (release_9.3.6 @ /home/cassou/.emacs.d/lib/org/lisp/) -- Damien Cassou "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename=test.org #+name: table | | 2014 | |-----+------| | A C | 1 | | C | 2 | #+name: linechart #+begin_src R :results value :var accounts="" :exports none length(accounts) #+end_src #+call: linechart(accounts=table[,0]) #+RESULTS: : 3 --=-=-=--