[ESS] Using ESS with nix

Dominic Steinitz |dontgetoutmuch @end|ng |rom gm@||@com
Thu Feb 1 16:54:42 CET 2018


I don’t think you do need it. I just installed another version of R via homebrew so

> which -a R
> /usr/local/bin/R

So set

>  '(inferior-ess-r-program-name "/usr/local/bin/R")

And now I can use ESS.

The point is: I don’t want to use homebrew to install packages and the R package manager to install packages. I want to use nix.

I can use python mode in emacs but pointing at the version installed by nix so my question is how do I do this for R.

BTW the documentation in the manual seems to be out of date.

> Changes and New Features in 16.04:
> ESS[R]: developer functionality has been refactored. The new user interface consists of a single command ess-r-set-evaluation-env bound by default to C-c C-t C-s. Once an evaluation environment has been set with, all subsequent ESS evaluation will source the code into that environment. By default, for file within R packages the evaluation environment is set to the package environment. Set ess-r-package-auto-set-evaluation-env tonil to disable this.
But there is no longer any variable called 
> ess-r-set-evaluation-env 
At least describe-variable can’t find it.

Dominic Steinitz
dominic using steinitz.org
http://idontgetoutmuch.wordpress.com
Twitter: @idontgetoutmuch



> On 1 Feb 2018, at 13:36, Sparapani, Rodney <rsparapa using mcw.edu> wrote:
> 
> Yes you need it. Check the manual again.
> 
> Sent from my iPhone
> 
> On Feb 1, 2018, at 6:31 AM, Dominic Steinitz <idontgetoutmuch using gmail.com<mailto:idontgetoutmuch using gmail.com>> wrote:
> 
> ATTENTION: This email originated from a sender outside of MCW. Use caution when clicking on links or opening attachments.
> ________________________________
> 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/<https://urldefense.proofpoint.com/v2/url?u=http-3A__elpa.gnu.org_packages_&d=DwMFAg&c=aFamLAsxMIDYjNglYHTMV0iqFn3z4pVFYPQkjgspw4Y&r=2M6XAlqJdq-Ryc3EDyECCw&m=JBV5DvUmaBJO_SImq2Zi_peflhcDbOuG4a8rkpT9qeA&s=NisS_99BOG6FjF94YTXnN32ruM3bwzszDHBvW81kVAI&e=>")
>     ("melpa" . "http://melpa.milkbox.net/packages/<https://urldefense.proofpoint.com/v2/url?u=http-3A__melpa.milkbox.net_packages_&d=DwMFAg&c=aFamLAsxMIDYjNglYHTMV0iqFn3z4pVFYPQkjgspw4Y&r=2M6XAlqJdq-Ryc3EDyECCw&m=JBV5DvUmaBJO_SImq2Zi_peflhcDbOuG4a8rkpT9qeA&s=CacgJX6HxMtagfYrBLZHcWy96HBgzKlkxw8GLs3D_A0&e=>")
>     ("marmalade" . "http://marmalade-repo.org/packages/<https://urldefense.proofpoint.com/v2/url?u=http-3A__marmalade-2Drepo.org_packages_&d=DwMFAg&c=aFamLAsxMIDYjNglYHTMV0iqFn3z4pVFYPQkjgspw4Y&r=2M6XAlqJdq-Ryc3EDyECCw&m=JBV5DvUmaBJO_SImq2Zi_peflhcDbOuG4a8rkpT9qeA&s=uGPprLPoAVVfhXlaNpmuIg-gNt2yfcDZkA6wXaOEm0E&e=>"))))
> '(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 using steinitz.org<mailto:dominic using steinitz.org>
> http://idontgetoutmuch.wordpress.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__idontgetoutmuch.wordpress.com&d=DwMFAg&c=aFamLAsxMIDYjNglYHTMV0iqFn3z4pVFYPQkjgspw4Y&r=2M6XAlqJdq-Ryc3EDyECCw&m=JBV5DvUmaBJO_SImq2Zi_peflhcDbOuG4a8rkpT9qeA&s=G3hT2Ic885clRUG19_FUkQ72uE4ATbIbvMA-A7lRPSI&e=>
> Twitter: @idontgetoutmuch
> 
> 
> 
> On 29 Jan 2018, at 16:16, Sparapani, Rodney <rsparapa using mcw.edu<mailto:rsparapa using 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<https://urldefense.proofpoint.com/v2/url?u=http-3A__ess.r-2Dproject.org_Manual_ess.html-23Installation&d=DwMFAg&c=aFamLAsxMIDYjNglYHTMV0iqFn3z4pVFYPQkjgspw4Y&r=2M6XAlqJdq-Ryc3EDyECCw&m=JBV5DvUmaBJO_SImq2Zi_peflhcDbOuG4a8rkpT9qeA&s=INZu2CwnfivXiU_m0GzKfgmhCwUUmcKDug6nd91q-6o&e=>
> 
> Rodney
> 
> 
> 


	[[alternative HTML version deleted]]




More information about the ESS-help mailing list