From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id FZKkLkIpVV9TZAAA0tVLHw (envelope-from ) for ; Sun, 06 Sep 2020 18:24:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CMY+KkIpVV8FbAAA1q6Kng (envelope-from ) for ; Sun, 06 Sep 2020 18:24:02 +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 6CD959403A0 for ; Sun, 6 Sep 2020 18:24:01 +0000 (UTC) Received: from localhost ([::1]:37238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEzKa-0003bY-EW for larch@yhetil.org; Sun, 06 Sep 2020 14:24:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEzKC-0003bQ-4d for emacs-orgmode@gnu.org; Sun, 06 Sep 2020 14:23:36 -0400 Received: from mx0b-00395d01.pphosted.com ([148.163.137.170]:55176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEzK9-0003Dx-NT for emacs-orgmode@gnu.org; Sun, 06 Sep 2020 14:23:35 -0400 Received: from pps.filterd (m0173172.ppops.net [127.0.0.1]) by mx0b-00395d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 086ILOiY010801; Sun, 6 Sep 2020 11:23:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsd.edu; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=campus; bh=qKEjj29qnLkTikbuj8/RrRHPSd4asCwXUSJHptiRuEs=; b=TygR94VJZH+0fqY0DBdlz85iaQwaxxgch2FSyJbAT4ztnsMHLfQd5lVYt+PIvcqclB7U thxoXUZS+1FtbKR+7G/Q2Im5uivPwZKfGLUbasYdBLDtx43Gj17w231z9ODr6hyCmiB6 3b4Sg58LNa5HzyVrp2Ba0eaGX1RZFbYgDL3d8YG/gH2KgQdCHd8dKhQeQSUlXwKWcedp jsjHlAvzt12hYaPtOOvoPB0okDW1BESAo2ITa4eA7r1+HdjDBJXcxraIYrqaaBqQlFRU nWkVVhVoJfZOEO9zLct63wWdiMlnuypxfM3ht+mTfVG2s3w2cBWQMXXPPgI2CUo4DWX1 tw== Received: from secdlpezp05.ucsd.edu ([40.112.251.180]) by mx0b-00395d01.pphosted.com with ESMTP id 33c6y096de-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 06 Sep 2020 11:23:22 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KFlCgf8IwJjKFxx0DyxBJZARL0XA2xiTmZf8yaPgBCqDuaykZv3gji8gXp4ImVGQrqwKX7sqY1L6Q4FrwkS6uAzQmpsw9cEeQ/9nzSdMo3mjFA/uOSljlsjyPfwbJPYCUJSMFA6IwPuiGN3IH9832XbgX3dsnRnc+VnFKgVZKmmKe4TwD1lyNCDvP1dM1XC2OXT0iy3SOd9jAVnH1lzYLb9tbhun/cXXQOBSONHHj8HcrD3KPUb/kBzDpwW+sz9wfxgfz1TiweZaFDz1TNb2xTbRDFQqa++ZiRqkF6D/Yf45JS97MDTbiuSa+X07/nM2jaMC7ExGhaKXziBsbfkshQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qKEjj29qnLkTikbuj8/RrRHPSd4asCwXUSJHptiRuEs=; b=R/94Asted6pfyNqAL6svuLOH0eFrrLkFdV6FIzUGGriYf3f0iVSG/Gc6V1xz0QdPUTyNFrhfcS23V1vuoS4SzI4XQV/nCkIPvg1nV2jJHEhswqpBLDu2r7/l+8iIEKPtHj0u48vfa7ZXmJ/I+yxc0+xO4ScJLUO+VGLP382bQcEXAhczPbhZSPDeSR6iBZctbAJ/8iFFrAOY//Hc1oBme3oHrzm+Yg19slI6zuHu9zZOYKqdV6v17qt1JGnUjPHDCrHfwL+KAgAZP/8FDIs78p16zbOMQd4nzOGm2qD+NiJeIvAbGu9a+THgB0f6nS/9qYz9CA3Ao7SIm0kx4Jdj0g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=health.ucsd.edu; dmarc=pass action=none header.from=health.ucsd.edu; dkim=pass header.d=health.ucsd.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsdhs.onmicrosoft.com; s=selector2-ucsdhs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qKEjj29qnLkTikbuj8/RrRHPSd4asCwXUSJHptiRuEs=; b=s+QHG97neSbNa7Bv4fBcIFygzf4DUlJVke54ht4/SVO7po+9T48azAIk7pbRd3Rs0QjFJC8lCw7nChe2EZN9bcxethVQj81WVvrXZQrVbxC2Jahza9sAKNigN3IRRBO/8KuBhOZFEBGcKPHonwu1SZCEPW2E+zCwD6TRIbRAYlk= To: Damien Cassou Subject: Re: Bug: Babel+R handles spaces wrongly in tables [9.3.6 (release_9.3.6 @ /home/cassou/.emacs.d/lib/org/lisp/)] Thread-Topic: Bug: Babel+R handles spaces wrongly in tables [9.3.6 (release_9.3.6 @ /home/cassou/.emacs.d/lib/org/lisp/)] Thread-Index: AQHWhHrLqMkvc4TM9EeOAy5fjiJZyg== Date: Sun, 6 Sep 2020 18:23:19 +0000 Message-ID: <71761E05-7D0A-4FEF-8BAF-4C776A2FC17E@health.ucsd.edu> References: <87wo172laf.fsf@cassou.me> In-Reply-To: <87wo172laf.fsf@cassou.me> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2600:1702:1021:b0:4178:e502:ac84:c0c] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dfbf25de-c196-49ec-c2ca-08d85291ee56 x-ms-traffictypediagnostic: BY5PR19MB3875: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9saB3pTQuknt2qDTA4coBZib8MLNEAEINMD5RWQOW8nLiuWW1l3ftXa0PNVx8Mcor9OelFmo7ARi0PGNt7psDOKOctANbJpy0DXBaCMiySBkUkWWjq/XpyT1jV9JFH+1ZghvhEzsZWFNwUCnJBZHPQblegzbNuTwiPj4MhTdCeL5LPbsEL5uUPpLAFyJIGFN0tJiXEnofF40Cc7C+Gmn63BOzXx496rH7DZ7i/6oc/D+EQ4r9Wr0eNC726fT6fHrvGW4x2fC1pvEZAJgxDiAPqfuJXuhLS0HUzMhL0E+lj71SN8ZIHEdq8cLXhKsTyrL30NQQpTCP8TTW09f+inddg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR19MB2888.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(39850400004)(376002)(346002)(136003)(366004)(66476007)(316002)(786003)(4326008)(6916009)(66446008)(66946007)(5660300002)(76116006)(64756008)(66556008)(478600001)(8936002)(71200400001)(75432002)(6512007)(33656002)(53546011)(186003)(6506007)(8676002)(6486002)(2906002)(2616005)(83380400001)(86362001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: FaItBXYzGjNKmEdBE+uMZozW83h2JwXt3UjPQFxqgbfZfrkdPFQp2UX2jhmq4lP/mPUs7Niv7IFIj+YU4qC1FsJLB4D1L+CnRw4C4krK2i+RHA0jpo+LeCj4YwWQlDD8mgY/AU33oF5zc7QrXtNR++Op8949BO471Uee5YFlCIVqUY1LiRcyRSzbKofFmk2rtT2F6CmzLjusZl9QOOXLr735DBH16gKZt7TK2qj/uC8eizYVMWiIqnPMSNUXdnMJP1g3cF8O5A2emW6UuKwFGH7ZKYdYKuJ5eY9e3XvGO/Ju8yvihVdAWfiBFZ3ekwfR8LiJ1Y3GF2j8VnmN5XXGu4xaS41sFVmfrJW2aMeqeKL4lqSG3KFfnMbx1jBZDK0OP+m/x/6M2XwYV5AKnz3FNNEq/5tjXuMrKAoNw5ne1zl1X5vR5JcFNRVHXdxKsfYufSCvDSiJUrwasUOYcGmq8iyyHtgn8Tndm/lhrTIv6AyHp6KzCo9sugvTi1yeSiya41B+4Ud/0rxidehPOkdLp7DTP1plZ6B4PMhCJu8dHAk6rayMdYIdNxUvtwRagSxiHPC/d4tzy849dVgc51m/nSd6DdxFfJB03/mumP6B+DXGPFcZoEke07XB8U4o93f905vdAad6o15JbGNrJ3ORgImcLCBw63oxCvsmnMhPO8BXTWRdAOLEuP6GbX0kmkihtJY7RcwMEylBhWe8uFwbTQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <97B21545D5252C41AE4C27E2983DCB93@namprd19.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: health.ucsd.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR19MB2888.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dfbf25de-c196-49ec-c2ca-08d85291ee56 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Sep 2020 18:23:19.3725 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e470d736-e7f7-41a8-8eab-dad544b2b579 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9cpux/E/iurrWK4U6C890+PtH7cN1e6L4yOgaBFNKh9OQORF/NOf+O49YQ8SoXkoS3unw4Ow42dpCGkYo9v/KQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR19MB3875 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-06_13:2020-09-04, 2020-09-06 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 suspectscore=0 priorityscore=1501 mlxscore=0 phishscore=0 impostorscore=0 mlxlogscore=686 malwarescore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009060187 Received-SPF: pass client-ip=148.163.137.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0b-00395d01.pphosted.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/06 14:23:30 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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: , Cc: org-mode mailing list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" Reply-to: "Berry, Charles" From: "Berry, Charles" via "General discussions about Org-mode." X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=ucsd.edu header.s=campus header.b=TygR94VJ; dkim=fail (rsa verify failed) header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=s+QHG97n; 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.99 X-TUID: gO0l3nseJLl6 > On Sep 6, 2020, at 4:32 AM, Damien Cassou wrote: >=20 >=20 > Hi, >=20 > 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. Not exactly. Your ECM has one column, and using both columns removes the is= sue. Here is another ECM that illustrates the bug: #+begin_src R :results output :var accounts=3D(identity '("A B" "C"))=20 print(accounts) #+end_src The bug is in `org-babel-R-assign-elisp' which attempts to get the number o= f elements in each line of a table, but when the table has just one row or = column it gets this 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). >=20 Actually the length should be 1, i.e. a data.frame with a single column of = two elements. BTW, C-c C-v C-v with point in the src block will show you what R `receives= '. Unfortunately, there are other cases where the variable assignment does not= work seamlessly for R src blocks. There are workarounds, but they are ung= ainly - like using a src block for another language to render the table and= then using a noweb reference to it to import the data.=20 HTH, Chuck=