From: Tyler Smith <tyler@plantarum.ca>
To: "emacs-orgmode\@gnu.org" <emacs-orgmode@gnu.org>
Subject: running code with sessions on remote computers
Date: Thu, 21 May 2020 15:06:33 -0400 [thread overview]
Message-ID: <87eerdnm4m.fsf@plantarum.ca> (raw)
Hi,
I am trying to run some code on a remote machine. This is R code,
and uses the `:session` argument so that all blocks in the file
use the same session. This works fine when I ssh into the machine
and open Emacs running on that machine. However, when I use tramp
from my local machine, everything works, except that the session
argument is ignored. The top of my file looks like:
```
#+PROPERTY: header-args:R :session *R-sdm*
* Current code
#+begin_src R setup :session *R-sdm*
options(java.parameters = "-Xmx25g")
library(raster)
library(dismo)
#+end_src
```
I normally set the `:session` argument only in the file
`#+PROPERTY:` line, but here I added it to the code block header
as well, after it didn't work without it. It didn't make a
difference though.
What I see when I evaluate the code in this block: I'm prompted
for a directory to start in, and the new R process is started
there, with the name `*R-2*`. If I evaluate another code block in
the same file, I'm again prompted for the directory, and a new
process is started there, with the name `*R-3*`. Note that there
is no session named *R* running on the remote machine, although
there is one running on my local machine.
What I expect is to have the R session names `*R-sdm*`, and to
have the same session shared by all code blocks in this file.
My questions:
- is it possible to run code blocks in a session on a remote
machine?
- if it is, how can I approach sorting this out - is it an orgmode
problem, a tramp problem, or an ESS problem?
Thanks!
Tyler
--
Tyler Smith
plantarum.ca
reply other threads:[~2020-05-21 19:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eerdnm4m.fsf@plantarum.ca \
--to=tyler@plantarum.ca \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).