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 ms1 with LMTPS id QKozBZgqil6yXQAAk0OIDg (envelope-from ) for ; Sun, 05 Apr 2020 18:59:36 +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 kCm7IZYqil5TRgAA1q6Kng (envelope-from ) for ; Sun, 05 Apr 2020 18:59:34 +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 C82BF942655 for ; Sun, 5 Apr 2020 17:20:09 +0000 (UTC) Received: from localhost ([::1]:50288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jL8wJ-0008D5-GV for larch@yhetil.org; Sun, 05 Apr 2020 13:20:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51963) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jL8vu-0008AI-7S for emacs-orgmode@gnu.org; Sun, 05 Apr 2020 13:19:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jL8vs-0001jg-QA for emacs-orgmode@gnu.org; Sun, 05 Apr 2020 13:19:41 -0400 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:40536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jL8vs-0001hg-5y for emacs-orgmode@gnu.org; Sun, 05 Apr 2020 13:19:40 -0400 Received: from pps.filterd (m0173170.ppops.net [127.0.0.1]) by mx0a-00395d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 035HIgDq016984; Sun, 5 Apr 2020 10:19:37 -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=1gkAGGijlkSyNeheFYaZ3TjKYLfGR0RBJVIGiVtn65Q=; b=Xs0YjyCClzl647zd8GvHJKfY//nc9ZgNNK8WMJtQq8ktctYQcrMGpnL9iid0kM1G8hCn ioicU8AdbZh1Xs7DzPxPg//ZsaFnr5yuSOHuCjQ+4av96/v4cLMORt/2WbqmN9dykOVR gW4Zun7UvnVcLuc2oB4C4rsCuCotID+ThqLCz3vUtmw7trht+ZA5vnjRbmVH1FF6txu4 Bs1qruTNhwHF0//ofiOdcgsy6jR0ma6NFQOnUp3HUSimUkU/O4vNHezBdBO/4m3jZm0o bDESrN+RNX+M3v3GPzmMyTuaysJRCvusIhyr8PWsW9GdoHIYCba2h8Sl8yKCdyMZkvtN BA== Received: from secdlpezp03.ucsd.edu ([40.112.251.180]) by mx0a-00395d01.pphosted.com with ESMTP id 306qum0y7x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 05 Apr 2020 10:19:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T27ImCRVRXhSde4cWmmxouMKBBf6RIJhR8C3PsjsAVG/DFiG4NitaF5MhqHf4SAB5XgIsJd1ciM34oTs78EpKgjWOuG7mdb76X5vUAW+eKA6Y13tlRHZMyu3eg7LuVODzzM6wuEB8+z+s/pcwCgIltK91QnjtellGlhDv9BdIRcjXcXvhXugfMhUj+FFZIxnpeIF5R1+WWcju5zw+l5Ip4oFJ8cbcGBvVGJbQp/llCxxipvKSEUcpGFXky2GLYfC2dmMB3CQpGRWgEetyYcMT24zP3SfrXUjYY9b5nT4ZiUtn7Of19i+4rGyqaJHXlw+qeUvIHdif0Fsm8fFa4M7Ug== 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=1gkAGGijlkSyNeheFYaZ3TjKYLfGR0RBJVIGiVtn65Q=; b=UlGBYxGKujMo2zw+6tV0Dl9kzEh00lrdUvNIWKz4zKh28O+Cv6euRAYJloxBY5povQm6sTcXaf9gwAtkM9ItiNc21hakd8NCiTAA2a7AmNin4QlY3rPL3/VAfsWnhcRNq3/zA/xA8inqBw41B/ld8hMHEF5lyzPaAibPkZjW4F/1PHaFpPnQ/LL0I7Ixs9rTA3WFNNzCHMsw62KhCdpFj6GfDxAUJCJqOqb5vhhaNxu4dtB3H4aAsu72N4UrbZ6m2BH4Lcf9mdrZ/ZDo0inLFjLsTM2h9Wog4E5DQ7knMWd6/1q23k++Wc2ZKVhPEpc0Dowu/57v2hGnYXMw24BgaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=temperror (sender ip is 132.239.0.82) smtp.rcpttodomain=gnu.org smtp.mailfrom=health.ucsd.edu; dmarc=temperror action=none header.from=health.ucsd.edu; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsdcloud.onmicrosoft.com; s=selector2-ucsdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1gkAGGijlkSyNeheFYaZ3TjKYLfGR0RBJVIGiVtn65Q=; b=hYyNKBtqZsYp84BfZWsACgviFpxidkdvOWvkWQp8VH+G327rAILrCZyfkt6TwwGQD058W7+Toen5koVhM356V4F/eIIqWs0+HaqBSjgL6PBUKrdySojv80Jp19thdpfNHwbcWoq/Dko7E+F0Ieathust6Y2M8iwIz91mWCN811E= Received-SPF: TempError (protection.outlook.com: error in processing during lookup of health.ucsd.edu: DNS Timeout) To: Matt Price Subject: Re: R session and plotting in x11 window Thread-Topic: R session and plotting in x11 window Thread-Index: AQHWC25abE3wcopYvkqhZnMPId8t3A== Date: Sun, 5 Apr 2020 17:19:25 +0000 Message-ID: <44FD428E-9525-4FE4-88BC-9A906960DD4B@ucsd.edu> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.7.165.110] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:132.239.0.82; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:newmail.ucsd.edu; PTR:xmail-b1.ucsd.edu; CAT:NONE; SFTY:; SFS:(10009020)(346002)(376002)(136003)(39860400002)(396003)(46966005)(33656002)(786003)(316002)(53546011)(9686003)(336012)(26005)(4326008)(63350400001)(63370400001)(82740400003)(186003)(356004)(246002)(7636002)(7696005)(75432002)(47076004)(8676002)(8936002)(5660300002)(70586007)(36756003)(70206006)(2906002)(6916009)(478600001)(86362001); DIR:OUT; SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f299c271-4488-4b50-5682-08d7d9857eb0 X-MS-TrafficTypeDiagnostic: BN6PR04MB0629: X-Microsoft-Antispam-PRVS: x-campus_o365: o365_983452 X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-Forefront-PRVS: 03648EFF89 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5wiu9HKrjJA1FbPd0fXFppQ5I03ePN5WKBGHUtIocK4elVvgbNb9d9WarL2pw8gA2UmDdS/Freu99+tYrXOjl2QHDr19H61H2Bvkr4UuHxTkFwHdJWsuORzUPfA/gYQO2ZigfVnmadfWM1T9heViNKie4MjKQcqowjvqcZqxjw6lddJcMyXPymCDBcuA/9Us+3TbCKMFItWLOMpRjrBMI0ZI+JRYfgKMGqgVWZgryGs1qmwMhXjd55k7jMXD5dH0viTr5UE9pen003KIzMmDkhfCETSa+Fu0M2MyPbuTvKjIC0HfJvvNyDXv5CLyOluwFaF0LoUU9oo+puEUvb442bzFmG/23ms81e2dIR/ZmvZjfCPV05P0o6kfsnks25XxM9MLQiKm5MvPCLfosxbBUk1tLFNOtPntyRZfuq64rGgxksmD2mb7iy4iJDURZUs2tjIX7lgZyyPZm0k0XufOzCC3EwQ1GctHyJM9WXJE6MQRG4b48C2OE8IBNpl3Gba2aMfX2s6op2A/eeeqmuTJAw== X-OriginatorOrg: ucsd.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2020 17:19:27.4388 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f299c271-4488-4b50-5682-08d7d9857eb0 X-MS-Exchange-CrossTenant-Id: 8a198873-4fec-4e76-8182-ca479edbbd60 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=8a198873-4fec-4e76-8182-ca479edbbd60; Ip=[132.239.0.82]; Helo=[newmail.ucsd.edu] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0629 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-04-05_08:2020-04-03, 2020-04-05 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=999 bulkscore=0 adultscore=0 spamscore=0 impostorscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004050161 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 148.163.133.170 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 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." ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=default; t=1586107211; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1gkAGGijlkSyNeheFYaZ3TjKYLfGR0RBJVIGiVtn65Q=; b=OZPR9mA3R8cMu+4VXZYw73uOBAW0GRucXXPpoLvFNFJ6cGH07RQdl/WSIjYG2oJqVYnwJ1 yGlSgUfAH+n449plpQtmISw2LGrrKcY8cfTZP17wmD3t68oKu+I5Fkv5HgvLbRkxnc1RCW aZE6GCUhJ2tTgSvi/DTELQqkM01HpH0= ARC-Seal: i=2; s=default; d=yhetil.org; t=1586107211; a=rsa-sha256; cv=fail; b=jcKo6KvPBzvVflo/Y/Jhv/R5szUssnhauflnMp+AnA712qykKwccG6SLOSXIl1VIWZFB63 T8aM19M1OD1wJs5F9QkQunsKix2tn4wMw4a5T9Mux4Ho1MZv8mG4+7+MLaUB+SSYrsF/6f RlCAqDc/hVcKn3RmhVbbbzfwp4MoPEI= ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=ucsd.edu header.s=campus header.b=Xs0YjyCC; dkim=fail (rsa verify failed) header.d=ucsdcloud.onmicrosoft.com header.s=selector2-ucsdcloud-onmicrosoft-com header.b=hYyNKBtq; arc=reject (signature check failed: fail, {[1] = sig:microsoft.com:reject}); 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-Scanner: scn0 X-Spam-Score: 1.99 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=ucsd.edu header.s=campus header.b=Xs0YjyCC; dkim=fail (rsa verify failed) header.d=ucsdcloud.onmicrosoft.com header.s=selector2-ucsdcloud-onmicrosoft-com header.b=hYyNKBtq; 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-Scan-Result: default: False [1.99 / 13.00]; HAS_REPLYTO(0.00)[ccberry@health.ucsd.edu]; GENERIC_REPUTATION(0.00)[-0.58543075102685]; HAS_XOIP(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.33), country: US(-0.01), ip: 209.51.188.17(-0.59)]; R_DKIM_REJECT(1.00)[ucsd.edu:s=campus,ucsdcloud.onmicrosoft.com:s=selector2-ucsdcloud-onmicrosoft-com]; ARC_SIGNED(0.00)[i=2]; ARC_REJECT(2.00)[signature check failed: fail, {[1] = sig:microsoft.com:reject}]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[ucsd.edu:-,ucsdcloud.onmicrosoft.com:-]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[emacs-orgmode@gnu.org,emacs-orgmode-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; DMARC_NA(0.00)[gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: 03Mp0Cu/n3If > On Apr 4, 2020, at 4:27 PM, Matt Price wrote: >=20 > Does anyone know much about the difference between an R session opened by= typing M-x R, and the R session opened by org-babel? Short answer: almost none. Long answer: what `org-babel-R-initite-session' and friends do. >=20 > I'm just learning R and my usual method for learning a language is to kee= p a kind of notebook in org with code snippets they I can execute and itera= te on rapidly as I learn. This works great in R when I'm just doing math. = When I am working on plots, it would be nice to have them open up quickly e= ither in emacs or in the standard x11 window that R session opened switch M= -x R opens up. =20 >=20 > I know I can set the src block headers to produ e a file, but when I'm ju= st iterating rapidly I often switch back and forth between a data output an= d a graphical output, and typing/erasing those headers is clunky and slow. = It would be easier to just paste the plot command into the console and have= it pop open the window... But that doesn't seem to work. Anyone know if I = can tweak something to make that possible? >=20 I sam really puzzled by this. Do you have an ECM that illustrates this? Working interactively on my Mac (Quartz - X11 is the device), I routinely d= o what you describe - usually working from the src edit buffer - and the pl= ots are displayed (and older plots are available via clover-left or some su= ch). If I had to guess, I'd say that you are opening an R session, but not using= it. If you execute a src block, but it does not have a `:session' header, = a new instance of R will create a plot file and then exit. If you look in t= he default directory, you would see `Rplots.pdf' or some such. The only other thing that comes to mind is that you opened a device that is= holding on to all your plots. Try `dev.cur()' in R immediately before and = after you create a plot and see what the result is. HTH, Chuck