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 cHW+OKSaV18pawAA0tVLHw (envelope-from ) for ; Tue, 08 Sep 2020 14:52:20 +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 8N+lNKSaV18AFgAAbx9fmQ (envelope-from ) for ; Tue, 08 Sep 2020 14:52:20 +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 7206F94028F for ; Tue, 8 Sep 2020 14:52:20 +0000 (UTC) Received: from localhost ([::1]:58322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFeyp-00068u-C4 for larch@yhetil.org; Tue, 08 Sep 2020 10:52:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFeyI-0005xR-GO for emacs-orgmode@gnu.org; Tue, 08 Sep 2020 10:51:46 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:32842) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFeyG-00026J-Uh for emacs-orgmode@gnu.org; Tue, 08 Sep 2020 10:51:46 -0400 Received: by mail-pf1-x42b.google.com with SMTP id c196so5672695pfc.0 for ; Tue, 08 Sep 2020 07:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=XZOcgX2VX6tPsbHwy/ZnenDaI6WNLL5A9d78eceMDZQ=; b=hhgj2eDfWaoQYulZ2w4MjgJlalGyZyV5LDpoxL7PhVCDcfd+BGgjCwdplXI+hZmYoR QgcA2HpuD6vFygfDDZg2tBjjs/YPlqvKpBAkQxx8AQJ6WOOV5y6FHzid5YesTqpzSce/ 88U4GBnkVSVrvoonRlt/CrZ3DYMuuY5OpzxeH3B2vA9+Avkyql0C2NkDs5+z3nxZuoMF g/4blsa7Up9ef4fgU1x/OvYEMUCMcm0l/fMAuC7Lyl65pWVZDe+ZH+FNJc3blt71ukb8 affhm9BqBCyId4qdjrNQi4AkpXqijHWTTwYykkizNb8tte+5JiDQ4CVD58+hL/Vy3r4E ysRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=XZOcgX2VX6tPsbHwy/ZnenDaI6WNLL5A9d78eceMDZQ=; b=M5ytUwXNCzWjBLiqglEvWpUmweaEavGYb3xuAozSbj/tge4WvolKEDPLcRIGfl97Ei GtVBWl322xIxitaT/jAKulMYA512Kvh4zfq0ZT8LyVkYpebH4C/Up28Xt8+ZkHQkEATr 0LNVKFnFeFFyVTlGWhIMS5z0p4XB0UwKYGojd3K65vqOUkriekhTPF6vxOQxU4LDJGDF DqB9PXe9GkhYTnwKpe1MnY1pp04UnIfIFTEUukbRpvhgLbYL4YU+wAwADysKyNRCwG8O gCUmUUXDFdyarx0tAqTrj/RSwC4ijalEHVTohEyllyEL2C+bnnvciHaWvL2iHpL5S7K8 I8Wg== X-Gm-Message-State: AOAM533rybPFByIZdbF7kT356MXvnlMCz3WhbcubDGwkQPtXYcvzhaEp i7emM8lMSOyoLl5CM7sinAI= X-Google-Smtp-Source: ABdhPJzt+sdziqwKyybGVAJfb4K230xJpuxy1hXL8Sr3gAmmvhIymE2vDf0I60cmeaSIXMb5lfHYmg== X-Received: by 2002:a17:902:8213:: with SMTP id x19mr9103496pln.10.1599576703443; Tue, 08 Sep 2020 07:51:43 -0700 (PDT) Received: from localhost (199-83-220-90.PUBLIC.monkeybrains.net. [199.83.220.90]) by smtp.gmail.com with ESMTPSA id q71sm16190873pja.9.2020.09.08.07.51.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 07:51:42 -0700 (PDT) From: Jack Kamm To: "Berry, Charles" Subject: Re: Help debugging R source code block output problem with :session In-Reply-To: <1E0046A6-1FAB-45B5-9B08-68FE1BE98180@health.ucsd.edu> References: <87r1rqled0.fsf@havana> <87k0xifa9h.fsf@gmail.com> <87d03art6a.fsf@havana> <87h7slgbi5.fsf@gmail.com> <352C7149-743F-4944-ACA5-7A1242B5A3AA@health.ucsd.edu> <87tuwa9ez4.fsf@gmail.com> <87pn6y9dqy.fsf@gmail.com> <48AD2294-E831-44D7-B564-0F7B4019C61B@health.ucsd.edu> <87ft7t9wqk.fsf@gmail.com> <87a6y1axhi.fsf@gmail.com> <1E0046A6-1FAB-45B5-9B08-68FE1BE98180@health.ucsd.edu> Date: Tue, 08 Sep 2020 07:51:42 -0700 Message-ID: <874ko8b9tt.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=jackkamm@gmail.com; helo=mail-pf1-x42b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: "emacs-orgmode@gnu.org" , Dylan Schwilk Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=hhgj2eDf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 0.09 X-TUID: Z+DA+klwMybg "Berry, Charles" writes: > Also, I wonder if the `:results value' case can be handled in a similar manner, viz. > > - (let ((tmp-file (org-babel-temp-file "R-"))) > + (let ((tmp-file (with-current-buffer session (org-babel-temp-file "R-")))) Yes, if we did that then tmp-file would have a prefix like "/scp:user@hostname:", and elisp would then know to read the result file from the remote host. Before pasting tmp-file into R code, we should also call (org-babel-process-file-name tmp-file 'noquote) to remove the tramp prefix when referring to the file from R.