[ESS] "foreign" languages in R and ESS

Martin Maechler maechler at stat.math.ethz.ch
Mon Nov 21 11:30:38 CET 2005


>>>>> "StEgl" == Stephen Eglen <S.J.Eglen at damtp.cam.ac.uk>
>>>>>     on Mon, 21 Nov 2005 10:18:06 +0000 writes:

    >> Once you know to solve the R part,
    >> for you, it might help to define an R shell skript,
    >> say 'R-ukr' containing
    >> 
    >> #!/bin/sh
    >> LANGUAGE=<...>
    >> LC_ALL=<...>
    >> export LANGUAGE LC_ALL LC.......
    >> R $@
    >> 
    >> where you must replace <...> with the correct string for
    >> Ukrainain, make the script executable ("chmod +x R-ukr") and be sure
    >> that it is in your PATH {conventional would be to have it in $HOME/bin/
    >> and add $HOME/bin to your PATH}.
    >> 
    >> Now with a recent version of ESS (5.2.10 is sufficient),
    >> M-x R-ukr
    >> would automatically work.

    StEgl> Almost... but not quite.  If the script is called R-ukr, I don't think
    StEgl> it will be picked up by ESS;

    StEgl> ess-r-versions's value is 
    StEgl> ("R-1" "R-2" "R-devel" "R-patched")

    StEgl> so, either do:

    StEgl> 1. call the script R-2-ukr and then it should be found.

    StEgl> 2. set ess-r-version before ess is loaded:

    StEgl> (setq ess-r-versions '("R-1" "R-2" "R-devel" "R-patched" "R-uk"))

    StEgl> See doc string of ess-r-versions for more details.

Yes, of course, Stephen is perfectly right.

Thanks for the correction,
Martin




More information about the ESS-help mailing list