[Rd] re quest for addition to R-int

Ben Bolker bolker at ufl.edu
Mon Dec 24 00:31:23 CET 2007




Bjørn-Helge Mevik wrote:
> 
> Ben Bolker wrote:
> 
>> http://cran.r-project.org/doc/manuals/R-ints.html#R-coding-standards
>>
>>  gives detailed advice on how to set the indentation level for
>> C code to 4, but it took me a bit of poking around in the archives
>> to find the
>>
>> (setq ess-indent-level 4)
>>
>> incantation for getting the R indentation right as well.
> 
> I'm confused.  Doesn't the suggested code 
> 
> (add-hook 'ess-mode-hook
>                (lambda ()
>                  (ess-set-style 'C++)
>  ...
> 
> implicitly set ess-indent-level to 4?  At least for me, using the
> suggested code gives indentation steps of 4 in R code.
> 
> -- 
> Bjørn-Helge Mevik
> 
> ____
> 

  I guess, but since I was using emacs 21 I followed the
instructions to use customization instead -- and I guess
the customization steps don't include this hook ?

  Ben

-- 
View this message in context: http://www.nabble.com/request-for-addition-to-R-int-tp14457818p14482966.html
Sent from the R devel mailing list archive at Nabble.com.



More information about the R-devel mailing list