Re: [ESS] Using ESS with nix

2018-03-24 Thread Dominic Steinitz
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
domi...@steinitz.org
http://idontgetoutmuch.wordpress.com
Twitter: @idontgetoutmuch



> On 1 Feb 2018, at 12:31, Dominic Steinitz  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/ 
>> ")
>>  ("melpa" . "http://melpa.milkbox.net/packages/ 
>> ")
>>  ("marmalade" . "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
> domi...@steinitz.org 
> http://idontgetoutmuch.wordpress.com 
> Twitter: @idontgetoutmuch
> 
> 
> 
>> On 29 Jan 2018, at 16:16, Sparapani, Rodney > > 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 
>> 
>> 
>> Rodney
>> 
>> 
> 


[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Using ESS with nix

2018-02-01 Thread Dominic Steinitz
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
domi...@steinitz.org
http://idontgetoutmuch.wordpress.com
Twitter: @idontgetoutmuch



> On 1 Feb 2018, at 13:36, Sparapani, Rodney  wrote:
> 
> Yes you need it. Check the manual again.
> 
> Sent from my iPhone
> 
> On Feb 1, 2018, at 6:31 AM, Dominic Steinitz 
> mailto:idontgetoutm...@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/")
> ("melpa" . 
> "http://melpa.milkbox.net/packages/")
> ("marmalade" . 
> "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
> domi...@steinitz.org
> http://idontgetoutmuch.wordpress.com
> Twitter: @idontgetoutmuch
> 
> 
> 
> On 29 Jan 2018, at 16:16, Sparapani, Rodney 
> mailto:rspar...@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
> 
> Rodney
> 
> 
> 


[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Re: [ESS] Using ESS with nix

2018-02-01 Thread Sparapani, Rodney
Yes you need it. Check the manual again.

Sent from my iPhone

On Feb 1, 2018, at 6:31 AM, Dominic Steinitz 
mailto:idontgetoutm...@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/")
 ("melpa" . 
"http://melpa.milkbox.net/packages/")
 ("marmalade" . 
"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
domi...@steinitz.org
http://idontgetoutmuch.wordpress.com
Twitter: @idontgetoutmuch



On 29 Jan 2018, at 16:16, Sparapani, Rodney 
mailto:rspar...@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

Rodney



__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Using ESS with nix

2018-02-01 Thread Dominic Steinitz
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/";)
>  ("melpa" . "http://melpa.milkbox.net/packages/";)
>  ("marmalade" . "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
domi...@steinitz.org
http://idontgetoutmuch.wordpress.com
Twitter: @idontgetoutmuch



> On 29 Jan 2018, at 16:16, Sparapani, Rodney  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
> 
> Rodney
> 
> 


[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


[ESS] Using ESS with nix

2018-01-29 Thread Sparapani, Rodney
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

Rodney


__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


[ESS] Using ESS with nix

2018-01-29 Thread Dominic Steinitz
For my python development I have

>  '(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"

I can see

> inferior-ess-r-program-name

And

> inferior-R-args

But I can’t see how to set the process environment. The release notes mention

> ess-r-set-evaluation-env

But describe-variable doesn’t seem to be able to find it.

In summary, my question is how do I get ESS to use my nix version of R?

Many thanks, Dominic.




[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

[ESS] Using ESS with nix

2018-01-29 Thread Dominic Steinitz
For my python development I have

>  '(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"

I can see

> inferior-ess-r-program-name

And

> inferior-R-args

But I can’t see how to set the process environment. The release notes mention

> ess-r-set-evaluation-env

But describe-variable doesn’t seem to be able to find it.

In summary, my question is how do I get ESS to use my nix version of R?

Many thanks, Dominic.




[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help