From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uPtZKf+R4GDbuwAAgWs5BA (envelope-from ) for ; Sat, 03 Jul 2021 18:36:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8OsDJf+R4GD7SQAAB5/wlQ (envelope-from ) for ; Sat, 03 Jul 2021 16:36:15 +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 795A61D998 for ; Sat, 3 Jul 2021 18:36:14 +0200 (CEST) Received: from localhost ([::1]:49846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzicm-0002Km-1G for larch@yhetil.org; Sat, 03 Jul 2021 12:36:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzicM-0002JO-90 for emacs-orgmode@gnu.org; Sat, 03 Jul 2021 12:35:46 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.216.144.57]:54452 helo=unopposed-gwydion.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzicK-0004ft-2b for emacs-orgmode@gnu.org; Sat, 03 Jul 2021 12:35:45 -0400 Received: from chthonic-hellhound.authn-relay.a.mail.umich.edu (ip-10-0-74-233.us-east-2.compute.internal [10.0.74.233]) by unopposed-gwydion.relay-egress.a.mail.umich.edu with ESMTPS id 60E091DD.3A608.62E11B9E.247232; Sat, 03 Jul 2021 12:35:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1625330140; bh=aXwSYW2XOB9g01tfo7l5BR7UJdRTGeyGJKF9X34AH10=; h=From:To:Subject:Date; b=QzCZpTS3twdt0RwdH3YcAnb+MzPpyRY+pDTl9dk+8pNyfd9VjWTBlKM5nYJJRB+LS JWpb0Cl365HZDkO3tTDkNzGgPyPYXn5HtX113gxv7HVODs0pRMh71uBQSXi4H6K7c6 oVSj5bo4RlV9StLkdxrVPZdbivqZB2evKhNrBNzyO3X/FcFjpCoxDXuCGpLnJf2gye fa8ata02e83YTZTgyRDD8Ihxjct++RTRU8Cw+aXJriXRtWjqluUykgpmmIa8T06OYM K+fGfjCkEQq6hLdHATNo/mAEzoFdUC+SDGnDAPRXDsi07gZYEnedeU0etjOn4YjNPo NkNrunvHyxn5w== Received: from localhost (Mismatch [95.14.69.65]) by chthonic-hellhound.authn-relay.a.mail.umich.edu with ESMTPSA id 60E091DB.8EDD9.3A2D478B.224406; Sat, 03 Jul 2021 12:35:40 -0400 From: Greg Minshall To: orgmode Subject: using previous =#+results= when =:eval never= X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3963140.1625330129.1@apollo2.minshall.org> Date: Sat, 03 Jul 2021 19:35:29 +0300 Message-ID: <3963141.1625330129@apollo2.minshall.org> Received-SPF: pass client-ip=18.216.144.57; envelope-from=minshall@umich.edu; helo=unopposed-gwydion.relay-egress.a.mail.umich.edu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625330174; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aXwSYW2XOB9g01tfo7l5BR7UJdRTGeyGJKF9X34AH10=; b=RkFJDamoHmccBf+kvR9EqZEqR3Whw1K+OlTDpOwxQzuAry6HWsLig8Tbju+MdGTOktXrO5 quMdCEa79TB6GZEenQo0PhRQJ8FldwQhyCfltoOr+IE0/ytNVFXP5YKGuvrYXbmOGpGeSE nS90Y6pa3aCOKCUFWKm+KkvZoYoP77LLLKk9y5ZHawSNPksVjPReViFJA8GlD6a2xjQd9k 5DFa7wdf1j6pkYjwEqEzEMPHDhIWLf5JVIUCd4rz8T9lnLREpD06BmYVILElnyKMaovkUq IHYmR8RFwUPg3ed2ySbJYTWlGRAxVT6m/K8LzWqrgLOV+XHl0Ve/wxlFo8zjPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625330174; a=rsa-sha256; cv=none; b=RVIS2hn7Oz4zqyqF4xLN5//8iR9cjpJ4/rPisbgCARFVUPITdiDGzfgROnHyqZikyQHVER YB/d6gB94BffPIDpBMVtS6aYB8uF4XrI1HPlsEUvAKB0hEgar8UfhNGayl0h+CpR+qCX3z qeKAap265XD05818vZ0KiKty6uSeoxfG0y09I53CG7yBYZ8gBq8P95ClmqBvB2tO0h8v/c +mIaWPP8VloetdDuNEQEcXglLk1Hqu86A8miqXMTTqgEP9oudbA2pEB0OCuHuQQCVjhdjk MWfbfWGPOViDd+kPSTRDf4ZAsKHwZMJe/LMpx2L3Fmee2o5UXvCpGG+5CsYNww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=QzCZpTS3; 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-Migadu-Spam-Score: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=QzCZpTS3; dmarc=pass (policy=none) header.from=umich.edu; 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-Migadu-Queue-Id: 795A61D998 X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: ChuLooBj1n/C hi. i am trying to simplify adding regression test cases to a program. to generate the base, "compared-to" results, i want to write some code in a source block, then evaluate it, producing the "true" value. then, later during development, i want to check if the code that ran in that block gives the same results. to do this, i preface the test check block with, e.g., =:var fu=bar=. obviously, i do *not* want to re-create the base results; so, after producing the base case results, i tried marking the source block that produces the results =:eval never=. but, doing that, using `:var fu=bar` on a test check source block, fu's value is nil. (*) is there a way to convince org-mode to, in the face of =:eval never=, go ahead and pass the *previous* results? or, some other idea of how to do this? there will be a large number of these test cases. cheers, Greg (*) this is sort of confusing, so here's an example: #+begin_src org ,#+name: testcountsdecompose ,#+begin_src R :eval never mtcars[1:3,] ,#+end_src ,#+RESULTS: testcountsdecompose | 21 | 6 | 160 | 110 | 3.9 | 2.62 | 16.46 | 0 | 1 | 4 | 4 | | 21 | 6 | 160 | 110 | 3.9 | 2.875 | 17.02 | 0 | 1 | 4 | 4 | | 22.8 | 4 | 108 | 93 | 3.85 | 2.32 | 18.61 | 1 | 1 | 4 | 1 | ,#+name: testcounts ,#+header: :var testcountsdecompose=testcountsdecompose :results output ,#+begin_src R str(testcountsdecompose) ,#+end_src ,#+RESULTS: testcounts : chr "nil" #+end_src whereas, if the =testcountsdecompose= source block does *not* have =:eval never=, my =testcountsdecompse= variable has all the rows and columns i was hoping for.