There is also the new styler package (a Google Summer of Code Project), not
sure if the style is at the parser level either.
https://github.com/krlmlr/styler
https://github.com/lorenzwalthert/styler
On Mon, May 8, 2017 at 9:01 AM, Stephen Eglen wrote:
>
> > That's not a style
> That's not a style from the parser but from the printer, e.g. the third letter
> of REPL rather than the first.
>
> Unlike gofmt, the R printer has been designed to print rather than format.
thanks for the clarification. But is it the closest we've got to a
formatting tool in R?
> On 8 mai 2017, at 09:07, Stephen Eglen wrote:
>
>> Let's say that following the R engine indentation style has been coldly
>> received.
>
> Oh dear! I personally think supporting the style from the R parser (if
> that is intended, perhaps it is not?) would be good.
That's
# This
>>> comment ends on column 97
>>> 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567
>>>
>>> -- David Brahm (br...@alum.mit.edu)
>>>
>>&g
since we are throwing ideas out there... perhaps what the R universe
could do with is something similar to "gofmt" for the go language. All
Go code looks the same, because there is a formatting tool, and everyone
uses it. How about something similar for R...?!?
Stephen
Richard M. Heiberger writes:
> When people send me code with consistent use of #, I can't read it
> because all the comments fly off to the right and are nowhere near
> what they are talking about.
Does ESS do this automatically, or do you need to explicitly ask it to
reindent the code for this
> >
> >>## for inline comments in code, and # brief margin notes
> >
> >> I find it useful, but all things change over time.
> >
> >> Steven McKinney
> >
> >>> -Original Message-
> >>> From: ESS-help [mailt
Steven McKinney
>> -Original Message-
>> From: ESS-help [mailto:ess-help-boun...@r-project.org] On Behalf Of Paul
>> Johnson
>> Sent: May-04-17 7:50 PM
>> To: ess-help
>> Subject: Re: [ESS] Ever consider changing indentation on #?
>>
>>
>
> >
> > -Original Message-
> > From: ESS-help [mailto:ess-help-boun...@r-project.org] On Behalf Of
> Charles C. Berry
> > Sent: Thursday, May 04, 2017 11:38 AM
> > To: Ista Zahn
> > Cc: Stephen Eglen; ess-help
> > Subject: Re: [E
On Thu, May 4, 2017 at 3:51 AM, Stephen Eglen wrote:
>
> hi Paul,
>
>> "what the Hell, the folding is borked!". This is more and more common
>> with the adoption of markdown-style commentary within R files.
>
> can you give an example of the markdown-style commentary?
>
>
Here
hi Paul,
> "what the Hell, the folding is borked!". This is more and more common
> with the adoption of markdown-style commentary within R files.
can you give an example of the markdown-style commentary?
> Until now, I've said "too bad" when they complain about their code,
> but now I'm
11 matches
Mail list logo