[ESS] Getting SAS to start
Martin Maechler
maechler at stat.math.ethz.ch
Wed Oct 5 15:43:19 CEST 2005
>>>>> "tony" == A J Rossini <blindglobe at gmail.com>
>>>>> on Wed, 5 Oct 2005 10:59:39 +0200 writes:
tony> I believe ess-sas-command.sh is what was being
tony> referred to, in etc/ ?
ah, thank you, Tony! We are getting closer. You mean
'ess-sas-sh-command' ?
and indeed that also appears once in the lisp sources
{otherwise it wouldn't be possible that it was used ...}
Ok. Let's assume that's what Cameron meant.
Now for that to work without alteration, the proper
'sas' (if you have several versions) must be in the user's PATH.
And in principle that's always pretty easily achievable:
Cameron: Couldn't you e.g., provide your own mini shell script
'sas', e.g. in ~/bin/ and make sure that ~/bin/ comes in your
PATH before the other (old version) 'sas' ?
This is the unix-ish approach that I would rather take than
modifiying other pieces of software.
Martin
tony> On 10/5/05, Martin Maechler
tony> <maechler at stat.math.ethz.ch> wrote:
>> >>>>> "Cameron" == Cameron Hooper <chooper at umich.edu>
>> >>>>> on Tue, 4 Oct 2005 11:05:24 -0400 writes:
>>
Cameron> Hi
>>
Cameron> After a recent SAS update I needed to change
Cameron> ess-sas-command to point to the actual executable
>> there's no 'ess-sas-command' in the ESS lisp files. What
>> do you really mean?
>>
Cameron> rather than the script now used to start SAS (as
Cameron> per 10.7 in the manual).
>> Did you really change it in the ESS *sources* ??? You
>> shouldn't touch those, they are ours, the ESS developers
>> ;-) :-)
>>
>> More seriously: You really shouldn't edit the ESS
>> sources, but rather put changes into your ~/.emacs {or a
>> byte-compiled file you load from your ~/.emacs}, see
>> below.
>>
Cameron> Now it works fine, but I was wondering if I can
Cameron> make the change in .emacs rather than
Cameron> ess-sas-command.
>>
Cameron> I'm worried that upgrades will remove the
Cameron> customization
>> exactly. and that's why should not tamper with the
>> sources but *customize* things properly, see below.
>>
Cameron> and I will spend a few hours next time trying to
Cameron> solve this problem again. (Yes, I have a bad
Cameron> memory!)
>> What I mean is: Use the menu to Customize ESS, and save
>> the customizations; this will add the appropriate
>> commands to your ~/.emacs
>>
>> Alternatively, set variables before or after
>>
>> (require 'ess-site) ;; or (load ..) or whatever you have
>>
>> by (setq ........) or even (defun ...........) But the
>> latter shouldn't be necessary; if it is, it's a ``design
>> bug'' in ESS, and we'd like to hear about it.
>>
>> Martin
>>
>> ______________________________________________
>> ESS-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>
tony> -- best, -tony
tony> blindglobe at gmail.com Muttenz, Switzerland. "Commit
tony> early,commit often, and commit in a repository from
tony> which we can easily roll-back your mistakes" (AJR,
tony> 4Jan05).
tony> ______________________________________________
tony> ESS-help at stat.math.ethz.ch mailing list
tony> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list