[rkward-users] [Help] RE: R Indentation

SourceForge.net noreply at sourceforge.net
Sat May 22 00:23:05 UTC 2010


The following forum message was posted by harrelfe at http://sourceforge.net/projects/rkward/forums/forum/165574/topic/3716805:

Here\'s an example:

if(1==2)
{
    y <- 1
}

is what appears.  I would like the { indented as per a popular R formatting style:

if(1==2)
    {
        y <- 1
    }

Having function arguments automatically indented in continuation lines would also be nice:

lm(y ~ x,
     data=d)

Frank




More information about the Rkward-users mailing list