From francois.michonneau at gmail.com Tue Apr 18 16:07:26 2017 From: francois.michonneau at gmail.com (=?UTF-8?Q?Fran=C3=A7ois_Michonneau?=) Date: Tue, 18 Apr 2017 10:07:26 -0400 Subject: [ESS] interacting with Docker Message-ID: Hi all, I was wondering if it was possible to connect ESS with an R process that is running in a Docker container. Thank you, -- Fran?ois From istazahn at gmail.com Tue Apr 18 18:13:53 2017 From: istazahn at gmail.com (Ista Zahn) Date: Tue, 18 Apr 2017 12:13:53 -0400 Subject: [ESS] interacting with Docker In-Reply-To: References: Message-ID: Set your container to run ssh and then connect as normal following the documentation at http://ess.r-project.org/Manual/ess.html#ESS-processes-on-Remote-Computers Best, Ista On Tue, Apr 18, 2017 at 10:07 AM, Fran?ois Michonneau wrote: > Hi all, > > I was wondering if it was possible to connect ESS with an R process > that is running in a Docker container. > > Thank you, > -- Fran?ois > > ______________________________________________ > ESS-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help From sje30 at cam.ac.uk Tue Apr 18 20:05:21 2017 From: sje30 at cam.ac.uk (Stephen Eglen) Date: Tue, 18 Apr 2017 19:05:21 +0100 Subject: [ESS] interacting with Docker In-Reply-To: References: Message-ID: hi Ista, I'm not sure I follow what you mean here for starting an R session within a docker container such that its available to ESS? On Tue, Apr 18 2017, Ista Zahn wrote: > Set your container to run ssh and then connect as normal following the > documentation at > http://ess.r-project.org/Manual/ess.html#ESS-processes-on-Remote-Computers > > Best, > Ista > > On Tue, Apr 18, 2017 at 10:07 AM, Fran?ois Michonneau > wrote: >> Hi all, >> >> I was wondering if it was possible to connect ESS with an R process >> that is running in a Docker container. >> >> Thank you, >> -- Fran?ois >> >> ______________________________________________ >> ESS-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/ess-help > > ______________________________________________ > ESS-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help From istazahn at gmail.com Tue Apr 18 20:36:26 2017 From: istazahn at gmail.com (Ista Zahn) Date: Tue, 18 Apr 2017 14:36:26 -0400 Subject: [ESS] interacting with Docker In-Reply-To: References: Message-ID: Hi Stephen, The docker container should start an ssh server. From that point, from the perspective of ESS, everything is the same as if you were connecting to any other remote machine. Best, Ista On Tue, Apr 18, 2017 at 2:05 PM, Stephen Eglen wrote: > hi Ista, > I'm not sure I follow what you mean here for starting an R session > within a docker container such that its available to ESS? > > On Tue, Apr 18 2017, Ista Zahn wrote: > >> Set your container to run ssh and then connect as normal following the >> documentation at >> http://ess.r-project.org/Manual/ess.html#ESS-processes-on-Remote-Computers >> >> Best, >> Ista >> >> On Tue, Apr 18, 2017 at 10:07 AM, Fran?ois Michonneau >> wrote: >>> Hi all, >>> >>> I was wondering if it was possible to connect ESS with an R process >>> that is running in a Docker container. >>> >>> Thank you, >>> -- Fran?ois >>> >>> ______________________________________________ >>> ESS-help at r-project.org mailing list >>> https://stat.ethz.ch/mailman/listinfo/ess-help >> >> ______________________________________________ >> ESS-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/ess-help > From sje30 at cam.ac.uk Tue Apr 18 20:47:10 2017 From: sje30 at cam.ac.uk (Stephen Eglen) Date: Tue, 18 Apr 2017 19:47:10 +0100 Subject: [ESS] interacting with Docker In-Reply-To: References: Message-ID: > The docker container should start an ssh server. Hi, that's the bit I need help with...i.e. what's the docker command to do that, e.g. for rocker/hadleyverse image? From lionel.hry at gmail.com Tue Apr 18 20:48:27 2017 From: lionel.hry at gmail.com (Lionel Henry) Date: Tue, 18 Apr 2017 20:48:27 +0200 Subject: [ESS] interacting with Docker In-Reply-To: References: Message-ID: <2A02F6A2-E1AB-471D-A45A-D1A71EECEC6E@gmail.com> Hi, I use: (defun R-docker () (interactive) (let ((ess-r-customize-alist (append ess-r-customize-alist '((inferior-ess-program . "path/to/R-docker")))) (ess-R-readline t)) (R))) With R-docker a script that launches the docker container. I haven't tried the SSH approach. Lionel > On 18 avr. 2017, at 16:07, Fran?ois Michonneau wrote: > > Hi all, > > I was wondering if it was possible to connect ESS with an R process > that is running in a Docker container. > > Thank you, > -- Fran?ois > > ______________________________________________ > ESS-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help From istazahn at gmail.com Tue Apr 18 22:08:09 2017 From: istazahn at gmail.com (Ista Zahn) Date: Tue, 18 Apr 2017 16:08:09 -0400 Subject: [ESS] interacting with Docker In-Reply-To: References: Message-ID: On Tue, Apr 18, 2017 at 2:47 PM, Stephen Eglen wrote: > >> The docker container should start an ssh server. > Hi, that's the bit I need help with...i.e. what's the docker command to > do that, e.g. for rocker/hadleyverse image? 1. Grab a docker file for setting up ssh on debian, e.g., https://bitbucket.org/itscaro/docker/src/04207e3e4402e42f82bae15f4d676f6978d514f1/debian-ssh/Dockerfile?at=master&fileviewer=file-view-default or https://github.com/rastasheep/ubuntu-sshd/blob/master/16.04/Dockerfile 2. Change the first line of the Docker file to "FROM rocker/tidyverse". Optionally make any other desired changes e.g., to set a different root password, or to set up a non-root user/password. 3. Build the docker image with "docker built -t rocker/ssh" (you can give it any tag you want) 4. Run your newly built ssh service: "docker run -d -P --name rocker_ssh rocker/ssh" 5. Find the ssh port: "docker port rocker_ssh" (you want the number to the right of the last colon). 6. Connect from Emacs using tramp (the root password is "root" unless you changed it in the Dockerfile) and run M-x R (as described in http://ess.r-project.org/Manual/ess.html#ESS-processes-on-Remote-Computers) From istazahn at gmail.com Tue Apr 18 22:09:07 2017 From: istazahn at gmail.com (Ista Zahn) Date: Tue, 18 Apr 2017 16:09:07 -0400 Subject: [ESS] interacting with Docker In-Reply-To: <2A02F6A2-E1AB-471D-A45A-D1A71EECEC6E@gmail.com> References: <2A02F6A2-E1AB-471D-A45A-D1A71EECEC6E@gmail.com> Message-ID: On Tue, Apr 18, 2017 at 2:48 PM, Lionel Henry wrote: > Hi, > > I use: > > (defun R-docker () > (interactive) > (let ((ess-r-customize-alist > (append ess-r-customize-alist > '((inferior-ess-program . "path/to/R-docker")))) > (ess-R-readline t)) > (R))) That seems a lot easier than what I do... > > With R-docker a script that launches the docker container. > I haven't tried the SSH approach. > > Lionel > > > >> On 18 avr. 2017, at 16:07, Fran?ois Michonneau wrote: >> >> Hi all, >> >> I was wondering if it was possible to connect ESS with an R process >> that is running in a Docker container. >> >> Thank you, >> -- Fran?ois >> >> ______________________________________________ >> ESS-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/ess-help > > ______________________________________________ > ESS-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help From p_connolly at slingshot.co.nz Wed Apr 19 00:35:16 2017 From: p_connolly at slingshot.co.nz (p_connolly) Date: Wed, 19 Apr 2017 10:35:16 +1200 Subject: [ESS] ess-dump-object-into-edit-buffer dumps only part of the object Message-ID: <697492df08a5fc3a17dcf5f1a80852ae@slingshot.co.nz> For many years I've used ess-dump-object-into-edit-buffer to edit functions and assign it to the F4 key. I updated the definition from C-c C-d which has since been superseded to C-x C-c C-d (IIRC -- I use the function name instead). Now it works properly only if the object is in the global environment. Otherwise, I get only the first few lines, so to get the rest of the text I need to list the function and pasting it into the edit buffer. Not a huge task but unsatisfactory for a lazy typist. I can't find any documentation that describes that change. Has that changed again since ess-16.04? TIA Patrick From ssefick at auburn.edu Fri Apr 28 16:57:00 2017 From: ssefick at auburn.edu (Stephen Sefick) Date: Fri, 28 Apr 2017 14:57:00 +0000 Subject: [ESS] ESS with emacs -nw on RHEL 7.3 Message-ID: <1493391420433.20468@auburn.edu> Hello, I am using ESS in emacs 24.5, and I would like to use ESS functionality when I start emacs with the no window option (i.e., emacs -nw). I have found that I can not "send" code to the R process when started in this way. I am sorry if this is not relevant, or if I do do not know the proper search term to type into google. Thank you for all of the help. kindest regards, Stephen [[alternative HTML version deleted]] From jmacdon at uw.edu Fri Apr 28 19:10:14 2017 From: jmacdon at uw.edu (James W. MacDonald) Date: Fri, 28 Apr 2017 13:10:14 -0400 Subject: [ESS] ESS with emacs -nw on RHEL 7.3 In-Reply-To: <1493391420433.20468@auburn.edu> References: <1493391420433.20468@auburn.edu> Message-ID: ESS works pretty much identically in the terminal as it does in the window system. What exactly do you mean when you say you can't 'send' code to the R process? Is this from a file that ESS recognizes as something that might have R code in it (e.g., a file with .R, .Rnw, .Rmd subscripts)? On Fri, Apr 28, 2017 at 10:57 AM, Stephen Sefick wrote: > Hello, > > > I am using ESS in emacs 24.5, and I would like to use ESS functionality > when I start emacs with the no window option (i.e., emacs -nw). I have > found that I can not "send" code to the R process when started in this way. > I am sorry if this is not relevant, or if I do do not know the proper > search term to type into google. Thank you for all of the help. > > kindest regards, > > > Stephen > > [[alternative HTML version deleted]] > > ______________________________________________ > ESS-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help > -- James W. MacDonald, M.S. Biostatistician University of Washington Environmental and Occupational Health Sciences 4225 Roosevelt Way NE, # 100 Seattle WA 98105-6099 [[alternative HTML version deleted]] From |r@nco|@@m|chonne@u @end|ng |rom gm@||@com Tue Apr 18 16:07:26 2017 From: |r@nco|@@m|chonne@u @end|ng |rom gm@||@com (=?UTF-8?Q?Fran=C3=A7ois_Michonneau?=) Date: Tue, 18 Apr 2017 10:07:26 -0400 Subject: [ESS] interacting with Docker Message-ID: Hi all, I was wondering if it was possible to connect ESS with an R process that is running in a Docker container. Thank you, -- Fran?ois From |@t@z@hn @end|ng |rom gm@||@com Tue Apr 18 18:13:53 2017 From: |@t@z@hn @end|ng |rom gm@||@com (Ista Zahn) Date: Tue, 18 Apr 2017 12:13:53 -0400 Subject: [ESS] interacting with Docker In-Reply-To: References: Message-ID: Set your container to run ssh and then connect as normal following the documentation at http://ess.r-project.org/Manual/ess.html#ESS-processes-on-Remote-Computers Best, Ista On Tue, Apr 18, 2017 at 10:07 AM, Fran?ois Michonneau wrote: > Hi all, > > I was wondering if it was possible to connect ESS with an R process > that is running in a Docker container. > > Thank you, > -- Fran?ois > > ______________________________________________ > ESS-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help From @je30 @end|ng |rom c@m@@c@uk Tue Apr 18 20:05:21 2017 From: @je30 @end|ng |rom c@m@@c@uk (Stephen Eglen) Date: Tue, 18 Apr 2017 19:05:21 +0100 Subject: [ESS] interacting with Docker In-Reply-To: References: Message-ID: hi Ista, I'm not sure I follow what you mean here for starting an R session within a docker container such that its available to ESS? On Tue, Apr 18 2017, Ista Zahn wrote: > Set your container to run ssh and then connect as normal following the > documentation at > http://ess.r-project.org/Manual/ess.html#ESS-processes-on-Remote-Computers > > Best, > Ista > > On Tue, Apr 18, 2017 at 10:07 AM, Fran?ois Michonneau > wrote: >> Hi all, >> >> I was wondering if it was possible to connect ESS with an R process >> that is running in a Docker container. >> >> Thank you, >> -- Fran?ois >> >> ______________________________________________ >> ESS-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/ess-help > > ______________________________________________ > ESS-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help From |@t@z@hn @end|ng |rom gm@||@com Tue Apr 18 20:36:26 2017 From: |@t@z@hn @end|ng |rom gm@||@com (Ista Zahn) Date: Tue, 18 Apr 2017 14:36:26 -0400 Subject: [ESS] interacting with Docker In-Reply-To: References: Message-ID: Hi Stephen, The docker container should start an ssh server. From that point, from the perspective of ESS, everything is the same as if you were connecting to any other remote machine. Best, Ista On Tue, Apr 18, 2017 at 2:05 PM, Stephen Eglen wrote: > hi Ista, > I'm not sure I follow what you mean here for starting an R session > within a docker container such that its available to ESS? > > On Tue, Apr 18 2017, Ista Zahn wrote: > >> Set your container to run ssh and then connect as normal following the >> documentation at >> http://ess.r-project.org/Manual/ess.html#ESS-processes-on-Remote-Computers >> >> Best, >> Ista >> >> On Tue, Apr 18, 2017 at 10:07 AM, Fran?ois Michonneau >> wrote: >>> Hi all, >>> >>> I was wondering if it was possible to connect ESS with an R process >>> that is running in a Docker container. >>> >>> Thank you, >>> -- Fran?ois >>> >>> ______________________________________________ >>> ESS-help at r-project.org mailing list >>> https://stat.ethz.ch/mailman/listinfo/ess-help >> >> ______________________________________________ >> ESS-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/ess-help > From @je30 @end|ng |rom c@m@@c@uk Tue Apr 18 20:47:10 2017 From: @je30 @end|ng |rom c@m@@c@uk (Stephen Eglen) Date: Tue, 18 Apr 2017 19:47:10 +0100 Subject: [ESS] interacting with Docker In-Reply-To: References: Message-ID: > The docker container should start an ssh server. Hi, that's the bit I need help with...i.e. what's the docker command to do that, e.g. for rocker/hadleyverse image? From ||one|@hry @end|ng |rom gm@||@com Tue Apr 18 20:48:27 2017 From: ||one|@hry @end|ng |rom gm@||@com (Lionel Henry) Date: Tue, 18 Apr 2017 20:48:27 +0200 Subject: [ESS] interacting with Docker In-Reply-To: References: Message-ID: <2A02F6A2-E1AB-471D-A45A-D1A71EECEC6E@gmail.com> Hi, I use: (defun R-docker () (interactive) (let ((ess-r-customize-alist (append ess-r-customize-alist '((inferior-ess-program . "path/to/R-docker")))) (ess-R-readline t)) (R))) With R-docker a script that launches the docker container. I haven't tried the SSH approach. Lionel > On 18 avr. 2017, at 16:07, Fran?ois Michonneau wrote: > > Hi all, > > I was wondering if it was possible to connect ESS with an R process > that is running in a Docker container. > > Thank you, > -- Fran?ois > > ______________________________________________ > ESS-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help From |@t@z@hn @end|ng |rom gm@||@com Tue Apr 18 22:08:09 2017 From: |@t@z@hn @end|ng |rom gm@||@com (Ista Zahn) Date: Tue, 18 Apr 2017 16:08:09 -0400 Subject: [ESS] interacting with Docker In-Reply-To: References: Message-ID: On Tue, Apr 18, 2017 at 2:47 PM, Stephen Eglen wrote: > >> The docker container should start an ssh server. > Hi, that's the bit I need help with...i.e. what's the docker command to > do that, e.g. for rocker/hadleyverse image? 1. Grab a docker file for setting up ssh on debian, e.g., https://bitbucket.org/itscaro/docker/src/04207e3e4402e42f82bae15f4d676f6978d514f1/debian-ssh/Dockerfile?at=master&fileviewer=file-view-default or https://github.com/rastasheep/ubuntu-sshd/blob/master/16.04/Dockerfile 2. Change the first line of the Docker file to "FROM rocker/tidyverse". Optionally make any other desired changes e.g., to set a different root password, or to set up a non-root user/password. 3. Build the docker image with "docker built -t rocker/ssh" (you can give it any tag you want) 4. Run your newly built ssh service: "docker run -d -P --name rocker_ssh rocker/ssh" 5. Find the ssh port: "docker port rocker_ssh" (you want the number to the right of the last colon). 6. Connect from Emacs using tramp (the root password is "root" unless you changed it in the Dockerfile) and run M-x R (as described in http://ess.r-project.org/Manual/ess.html#ESS-processes-on-Remote-Computers) From |@t@z@hn @end|ng |rom gm@||@com Tue Apr 18 22:09:07 2017 From: |@t@z@hn @end|ng |rom gm@||@com (Ista Zahn) Date: Tue, 18 Apr 2017 16:09:07 -0400 Subject: [ESS] interacting with Docker In-Reply-To: <2A02F6A2-E1AB-471D-A45A-D1A71EECEC6E@gmail.com> References: <2A02F6A2-E1AB-471D-A45A-D1A71EECEC6E@gmail.com> Message-ID: On Tue, Apr 18, 2017 at 2:48 PM, Lionel Henry wrote: > Hi, > > I use: > > (defun R-docker () > (interactive) > (let ((ess-r-customize-alist > (append ess-r-customize-alist > '((inferior-ess-program . "path/to/R-docker")))) > (ess-R-readline t)) > (R))) That seems a lot easier than what I do... > > With R-docker a script that launches the docker container. > I haven't tried the SSH approach. > > Lionel > > > >> On 18 avr. 2017, at 16:07, Fran?ois Michonneau wrote: >> >> Hi all, >> >> I was wondering if it was possible to connect ESS with an R process >> that is running in a Docker container. >> >> Thank you, >> -- Fran?ois >> >> ______________________________________________ >> ESS-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/ess-help > > ______________________________________________ > ESS-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help From p_conno||y @end|ng |rom @||ng@hot@co@nz Wed Apr 19 00:35:16 2017 From: p_conno||y @end|ng |rom @||ng@hot@co@nz (p_connolly) Date: Wed, 19 Apr 2017 10:35:16 +1200 Subject: [ESS] ess-dump-object-into-edit-buffer dumps only part of the object Message-ID: <697492df08a5fc3a17dcf5f1a80852ae@slingshot.co.nz> For many years I've used ess-dump-object-into-edit-buffer to edit functions and assign it to the F4 key. I updated the definition from C-c C-d which has since been superseded to C-x C-c C-d (IIRC -- I use the function name instead). Now it works properly only if the object is in the global environment. Otherwise, I get only the first few lines, so to get the rest of the text I need to list the function and pasting it into the edit buffer. Not a huge task but unsatisfactory for a lazy typist. I can't find any documentation that describes that change. Has that changed again since ess-16.04? TIA Patrick From @@e||ck @end|ng |rom @uburn@edu Fri Apr 28 16:57:00 2017 From: @@e||ck @end|ng |rom @uburn@edu (Stephen Sefick) Date: Fri, 28 Apr 2017 14:57:00 +0000 Subject: [ESS] ESS with emacs -nw on RHEL 7.3 Message-ID: <1493391420433.20468@auburn.edu> Hello, I am using ESS in emacs 24.5, and I would like to use ESS functionality when I start emacs with the no window option (i.e., emacs -nw). I have found that I can not "send" code to the R process when started in this way. I am sorry if this is not relevant, or if I do do not know the proper search term to type into google. Thank you for all of the help. kindest regards, Stephen [[alternative HTML version deleted]] From jm@cdon @end|ng |rom uw@edu Fri Apr 28 19:10:14 2017 From: jm@cdon @end|ng |rom uw@edu (James W. MacDonald) Date: Fri, 28 Apr 2017 13:10:14 -0400 Subject: [ESS] ESS with emacs -nw on RHEL 7.3 In-Reply-To: <1493391420433.20468@auburn.edu> References: <1493391420433.20468@auburn.edu> Message-ID: ESS works pretty much identically in the terminal as it does in the window system. What exactly do you mean when you say you can't 'send' code to the R process? Is this from a file that ESS recognizes as something that might have R code in it (e.g., a file with .R, .Rnw, .Rmd subscripts)? On Fri, Apr 28, 2017 at 10:57 AM, Stephen Sefick wrote: > Hello, > > > I am using ESS in emacs 24.5, and I would like to use ESS functionality > when I start emacs with the no window option (i.e., emacs -nw). I have > found that I can not "send" code to the R process when started in this way. > I am sorry if this is not relevant, or if I do do not know the proper > search term to type into google. Thank you for all of the help. > > kindest regards, > > > Stephen > > [[alternative HTML version deleted]] > > ______________________________________________ > ESS-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help > -- James W. MacDonald, M.S. Biostatistician University of Washington Environmental and Occupational Health Sciences 4225 Roosevelt Way NE, # 100 Seattle WA 98105-6099 [[alternative HTML version deleted]]