[ESS] Problem starting specific R version

Henric Winell n||@@on@henr|c @end|ng |rom gm@||@com
Mon Jul 2 16:51:46 CEST 2018


Hi Alex,

On 2018-07-01 17:27, Alex Branham wrote:

> Hi Henric -
> 
> Thanks. I forgot how Windows handles different R versions.
> 
> I've pushed a commit to my personal branch that I think fixes this. I
> did it on a separate branch that contains some other work though so the
> line numbers won't match up with what you have.
> 
> https://github.com/jabranham/ESS/commit/30e544aa0f4deaf46d210945a15f9c6209dfbb15
> 
> If you can test it, that would be much appreciated. Let me know if you
> can't though and I'll figure out some other way.

Unfortunately, using the versions of ess-mode.el and ess-r-mode.el 
referenced above doesn't work for me.  I get the following warning when 
starting Emacs:

Warning (initialization): An error occurred while loading 
‘c:/Users/henwin/.emacs’:

Wrong type argument: stringp, (lambda (&rest --cl-rest--) Start this 
process version in an inferior ESS buffer.
Function defined using `ess-define-runner'. (interactive P) (apply 
(quote (lambda (G0 G1 G2 &optional start-args) (cond ((string= 
(symbol-value G1) R) (let ((inferior-ess-r-program (or (symbol-value G0) 
(symbol-value G2)))) (R start-args))) ((string= (symbol-value G1) S) 
(let ((inferior-S+-program (or (symbol-value G0) (symbol-value G2)))) 
(require (quote ess-sp6-d)) (S+))) ((string= (symbol-value G1) SAS) (let 
((inferior-SAS-program (or (symbol-value G0) (symbol-value G2)))) 
(require (quote ess-sas-d)) (SAS)))))) (quote --path--) (quote 
--dialect--) (quote --name--) --cl-rest--))


When byte-compiling ess-r-mode.el I get the following:

Compiling file c:/Users/henwin/Desktop/ess-r-mode.el at Mon Jul  2 
16:46:48 2018

In ess-r-define-runners:
ess-r-mode.el:668:41:Warning: ess-define-runner called with 3 arguments, but
     accepts only 2
ess-r-mode.el:668:78:Warning: function ‘mapcar*’ from cl package called at
     runtime



Best,
Henric



> 
> Thanks!
> Alex
> 
> On Sun 01 Jul 2018 at 09:40, Henric Winell <nilsson.henric using gmail.com> wrote:
> 
>> Hi Alex,
>>
>> On 2018-07-01 15:51, Alex Branham wrote:
>>
>>> Thanks. I think the solution is to change "car" to "cdr" in
>>> ess-r-define-runners in ess-r-mode.el. It's hard for me to test this,
>>> though, since I don't have a windows machine.
>>
>> IIUC, you'd like to change 'car' to 'cdr' on L733:
>>
>> https://github.com/emacs-ess/ESS/blob/master/lisp/ess-r-mode.el#L733
>>
>> ?
>>
>> I just tried this change, but then 'M-x R-[TAB]' results in
>>
>> Click on a completion to select it.
>> In this buffer, type RET to select the completion near point.
>>
>> Possible completions are:
>> R-fix-T-F 	R-initialize-on-start
>> R-mode 	R-newest
>> R-transcript-mode
>>
>>
>> Best,
>> Henric
>>
>>
>>
>>>
>>> Are you familiar at all with elisp? If so, can you try changing it to
>>> see if that solves your problem? (you'll have to restart Emacs after changing it)
>>>
>>> If not, I'll find another way to test, just let me know.
>>>
>>> Thanks,
>>> Alex
>>>
>




More information about the ESS-help mailing list