From bhs2 at mevik.net  Sat Dec 22 18:23:34 2007
From: bhs2 at mevik.net (=?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=)
Date: Sat, 22 Dec 2007 18:23:34 +0100
Subject: [Rd] request for addition to R-int
In-Reply-To: <476BE28C.2010203@zoo.ufl.edu> (Ben Bolker's message of "Fri,
	21 Dec 2007 10:58:04 -0500")
References: <476BE28C.2010203@zoo.ufl.edu>
Message-ID: <m0abo28wyx.fsf@bar.nemo-project.org>

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



[Rd] request for addition to R-int
=?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=