[ESS] Using ESS with nix
Dominic Steinitz
idontgetoutmuch at gmail.com
Sat Mar 24 20:13:55 CET 2018
Someone on stackoverflow gave me the following solution
> Open a regular shell buffer with M-x shell, run your nix-shell command there, then do M-x ess-remote and select R. ESS will then recognize this buffer as its interactive R session.
>
> NB You need to run R before M-x ess-remote.
>
Now I have a really nifty workflow 😁
Dominic Steinitz
dominic at steinitz.org
http://idontgetoutmuch.wordpress.com
Twitter: @idontgetoutmuch
> On 1 Feb 2018, at 12:31, Dominic Steinitz <idontgetoutmuch at gmail.com> wrote:
>
> I have searched the manual but to no avail.
>
> Do I need `(require 'ess-site)`? I thought the package manager installed everything required? I have
>
>> '(package-archives
>> (quote
>> (("gnu" . "http://elpa.gnu.org/packages/ <http://elpa.gnu.org/packages/>")
>> ("melpa" . "http://melpa.milkbox.net/packages/ <http://melpa.milkbox.net/packages/>")
>> ("marmalade" . "http://marmalade-repo.org/packages/ <http://marmalade-repo.org/packages/>"))))
>> '(package-selected-packages
>> (quote
>> (ess git-timemachine haskell-mode nix-mode yaml-mode helm magit)))
>> '(paradox-github-token t)
>> '(python-shell-interpreter "/nix/var/nix/profiles/default/bin/nix-shell")
>> '(python-shell-interpreter-args
>> "-p \"callPackage /Users/dom/Dropbox/Tidy/mrp/dl.nix {}\" -I nixpkgs=/Users/dom/nixpkgs --run python")
>> '(python-shell-process-environment
>> (quote
>> ("NIX_PROFILES=/nix/var/nix/profiles/default /Users/dom/.nix-profile" "NIX_REMOTE=daemon" "NIX_PATH=/nix/var/nix/profiles/per-user/root/channels" "NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt" "NIX_USER_PROFILE_DIR=/nix/var/nix/profiles/per-user/dom"))))
>
> So python works as I want it to. I just need to know the equivalent variable for ESS.
>
> Dominic Steinitz
> dominic at steinitz.org <mailto:dominic at steinitz.org>
> http://idontgetoutmuch.wordpress.com <http://idontgetoutmuch.wordpress.com/>
> Twitter: @idontgetoutmuch
>
>
>
>> On 29 Jan 2018, at 16:16, Sparapani, Rodney <rsparapa at mcw.edu <mailto:rsparapa at mcw.edu>> wrote:
>>
>> Hi Dominic:
>>
>> Did you (require 'ess-site)? Maybe check out the docs which are also
>> available online at http://ess.r-project.org/Manual/ess.html#Installation <http://ess.r-project.org/Manual/ess.html#Installation>
>>
>> Rodney
>>
>>
>
[[alternative HTML version deleted]]
More information about the ESS-help
mailing list