From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id Y9lFAqbnVl/wJgAA0tVLHw (envelope-from ) for ; Tue, 08 Sep 2020 02:08:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WAMlOaXnVl8kTgAAB5/wlQ (envelope-from ) for ; Tue, 08 Sep 2020 02:08:37 +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 A25C8940668 for ; Tue, 8 Sep 2020 02:08:36 +0000 (UTC) Received: from localhost ([::1]:59242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFT3i-0003vy-7P for larch@yhetil.org; Mon, 07 Sep 2020 22:08:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFT3L-0003vp-LC for emacs-orgmode@gnu.org; Mon, 07 Sep 2020 22:08:11 -0400 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:36716) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFT3I-00086l-Qd for emacs-orgmode@gnu.org; Mon, 07 Sep 2020 22:08:10 -0400 Received: from pps.filterd (m0173171.ppops.net [127.0.0.1]) by mx0a-00395d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08826x8N023378; Mon, 7 Sep 2020 19:08:04 -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=FiP8AcAVzc8AnUtu2rogTB3YZnjRfQZX3ucm64ZdRkc=; b=OIN8l4mLbLG8ACXFgGwDJVQ9+wIUAyDN2rEnyj4kXpgFUo2OTtIbozupF2DAzVup5Ml7 rx3v9FSiHhbq1J1/LuSY64GDSAgwBm4D6mMddCGAH+BWCZQXThsxFc01vjpcUy8otrH8 OLAMLcxKLJ7rFf3lapfWH6fbufNQ9UKz6GX+mDs3xPILDWSAeHG53wBUdkVob3owG0YX Ka+bhGPtA8Oy7osy+iNwLGy7TCiwQ0QcePQjGX5TbhOEf2mriUVCfM94e1F3Veo3U43A AxW1L66G4VE08nUVKGgbGTsiyWknf330T5rXzlzh39e3lzd4NjOD/kZDAapgzN/8o5Y+ lA== Received: from secdlpezp04.ucsd.edu ([40.112.251.180]) by mx0a-00395d01.pphosted.com with ESMTP id 33c6wjjg6p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Sep 2020 19:08:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kb62NorBlmdjKX/T3RgtLgecCXsfYUzstGpDWdRxAU6mIuZwtGopvo9iqtedDaxnW8pMWN3vX5MzppO5p7mAlYFSrSWXUZAB8I9K3rrwa/hrjiTd6EbyvPizX8kTo+VXLclSv+3P5d0xrm4i9qyXLUqypz72gK0WxIBvtgxicL4vGC0mznvgZOGwyrrXsqCWSib+W9gvvhktgZq0WkICym8u5VGmhnclD7YTcDn5gRPhKfMvilh2yjF+QNEd/zpdTttO2jrUmzzarIoeHd/mtbk2dWajmbQGmo4p6h9vGAyFqnW0Pmfy//uGU+d+W0ws92OxLLbhcyuDsnuPF0svuA== 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=FiP8AcAVzc8AnUtu2rogTB3YZnjRfQZX3ucm64ZdRkc=; b=MesVIexHuKUfY1CROHEWOi1Yw+DHZlde7fPtKBKTfJT+YbCY9rKW2tPx/HGt0PSRHcoEHg9ZTeyZXNGQyFTeivY9LJKi8TYHi0bjPkqeX0xQGD2RBKC4gW2Gxb8Z+a2dF5l2PeeTHvKecfzo24jF/o3dmbBWE4JSU5PscXAdnetW58DDq5FXeLYZWZc3IRWGJmba2sFZhyU5ILqrnqB+qOwY0ZT9Qvq+0lNdqo5ySGa8DyFQV2nQC6ckUNLdRCUbusvIYgTewL43Yx/WHu5DulV8lvdHoeMLWB098Kt7tIBzGbWvtiidB8xj7sE1Ah8Gg7lwo6BLapVUhgjIuFZqWQ== 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=FiP8AcAVzc8AnUtu2rogTB3YZnjRfQZX3ucm64ZdRkc=; b=CBobrz1xceP4JzgQsybznmFCh7+Qs0mJBD2EUdu6/YdJmjXFVtZfyfPfoH3WhpKniXOs0NutM1Rtqcl7Wo4kJsoCTGyTM8wloQ11RGwytOq4D25T7GFhDjuMGmDtWSHbU3sv17iYP9MEsNaf1Mc+5rytOGzvV7h/e0rQcTjIbak= To: Jack Kamm Subject: Re: Help debugging R source code block output problem with :session Thread-Topic: Help debugging R source code block output problem with :session Thread-Index: AQHWfkPgfdvDvowZ7Uinebx1ikESsqlc4oaAgAAHZ4CAAJTBAIAAKdOAgAAi7gCAADB4gIAAEVOA Date: Tue, 8 Sep 2020 02:08:01 +0000 Message-ID: <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> In-Reply-To: <87a6y1axhi.fsf@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2600:1702:1021:b0:d498:db22:11b4:8c33] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 04f7536b-a971-40ba-94ba-08d8539c0411 x-ms-traffictypediagnostic: BYAPR19MB2229: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: c5RRG5EfraMMsrivdkV3xSCGRiXif28sCFg/WUmy7KegEN4dlJKR8gQTGY4arAxVgQC2SDlMVSf2/wHNxKdzZVcD+/dO76yvJGRPLpi8+nbuCryoxaLEdTC3dFDsCmeu2+zYilsUO0/Footck/bovhWtlRNplD0iePz7y2ANF+iO87ZqMLnhEwhmFhoiJPE1TKCmvXaGqrMVxyNCUYwKiizOuCGjQ6hmPw9qK1lCNOqJw/txiARrwhO0umeS7KGEcbMlh8EhHusYxsMrluV5vPYJ/2VBPHigJbFfL9BBZuROkYgH1l+vRzcVCM7RRJTfFJh7Kxi+2k41DEcCtqTCUg== 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)(39850400004)(136003)(376002)(396003)(346002)(366004)(2906002)(86362001)(66446008)(64756008)(66556008)(66476007)(66946007)(33656002)(478600001)(6486002)(2616005)(75432002)(76116006)(186003)(71200400001)(6506007)(53546011)(83380400001)(4744005)(8676002)(316002)(54906003)(8936002)(6512007)(5660300002)(6916009)(4326008)(786003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: E876qiNWW9PQuXVHmqjVNO2LX6sb1zkG2DndFOAiFWK4MrEoblUj2I7DvDmc1CmnLOwNDX2Wq2ARs11d/UcBs8l/9atiDFijZya+X8NNZgdE6Bb5oUpD6ISBe5KpOD8eCkSVYRaRgkItkUSnbYMEzfsK30TPPCSS4Ux15J1H/dSVNlsQaw0RpNMIArCOlw3fu8AnuLB5jV6UNKIsSV/vXyU6vjydiAZ2o1UyiVqLa7NHkTOQT70aUxOdY5+X6CfS2eksu0osA58q4E56oBDdjb+3FVf3QjT2bPvxyWGfXtvL4YYlde4FV7fhVhUJE1e9YIAIOezFnAu1zmJN+tt4wgnFjRh0JJm6mTJwEE0VrLv1beM3AbE2Bx4qRlmXUAtCUE4hoBgDCsCJ1PKhBrweWnDX+Q0TWrMaTpxjAGnAnxGh2mlOV1srNaebVH0y+ax/R49KyYoukfK7cRtYN+jf3Qi9Qs3ODlnmZRSQSrZB3xvNSThZdJAAt8DOvYhJKqQrMCVXpJKd5WHznHQ2TNapqmH2UVvZBS7EN4hhcwhMmQgaxiaWuzlm+7OytvjNZTRNPa+q3JacmMeReQoqhGzOWBhQw8OTWdOZQaiOXsPCPbIXgNvFlNls+KDpNkmcCdz6wAFoHc6Obs/3QtoKRmbN+Ke8NJCdeCu/gxFfy0v7TlJtUBILnXqf1uO/UhDsmzfxbhQyaN4g5nfzVcGEHFMXjQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <56F52672357C374BB7F1394F74E5338D@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: 04f7536b-a971-40ba-94ba-08d8539c0411 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Sep 2020 02:08:02.0000 (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: 7k9wINiWs1t/at7wcrcePULd/ABkBHQxjdZfnppcJrUpGVqttK2YCSZndJu5rFscGmnHVVc3371RdbSrFdSoHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR19MB2229 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-08_01:2020-09-07, 2020-09-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 mlxscore=0 mlxlogscore=973 bulkscore=0 malwarescore=0 suspectscore=0 adultscore=0 spamscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009080016 Received-SPF: pass client-ip=148.163.133.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0a-00395d01.pphosted.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/07 22:08:05 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] 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: "emacs-orgmode@gnu.org" , Dylan Schwilk 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=OIN8l4mL; dkim=fail (rsa verify failed) header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=CBobrz1x; 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: X1vXj06l2/o/ Jack, > On Sep 7, 2020, at 6:06 PM, Jack Kamm wrote: >=20 > Hi Chuck, >=20 >> I can confirm that this works on my setup in each of the scenarios in wh= ich `default-directory' got set correctly in the session buffer. >>=20 >> At some point, my default-directory got reset to drop the tramp prefix "= /scp:/user@host:" in one session after faithfully running the src block sev= eral times. I am unable to sort out why or even reproduce this. >=20 > Thanks for taking the time to test again. If you have any further > feedback at any point, please don't hesitate. >=20 Thanks. This seems like it will help me. =20 Also, I wonder if the `:results value' case can be handled in a similar man= ner, viz.=20 - (let ((tmp-file (org-babel-temp-file "R-"))) + (let ((tmp-file (with-current-buffer session (org-babel-temp-file "R-"))= )) =20 Best, Chuck=