[R] Recommendation for website to format R code

Suzen, Mehmet msuzen at gmail.com
Fri Jan 25 09:38:01 CET 2013


Probably formatR/knitr is more robust but this one has an option for S
http://hilite.me/

-m

On 25 January 2013 02:37, C W <tmrsg11 at gmail.com> wrote:
> I ran across this page for C, Java, etc.  No R.
>
> http://pastebin.com/
> It looks similar and more than what I was looking for, just saying.
>
> Mike
>
>
> On Wed, Jan 23, 2013 at 9:34 PM, Mark Lamias <mlamias at yahoo.com> wrote:
>
>> Are you only interested in formatting code from copy and pasting to/from
>> email?  If you are interested in formatting your code in Latex/PDF/HTML
>> take a look at the knitr package:
>>
>> http://yihui.name/knitr/
>>
>> Also, you could check out the formatR package:
>> http://cran.r-project.org/web/packages/formatR/formatR.pdf
>>
>> --Mark Lamias
>>
>>
>>   ------------------------------
>> *From:* C W <tmrsg11 at gmail.com>
>> *To:* r-help <r-help at r-project.org>
>> *Sent:* Wednesday, January 23, 2013 9:27 PM
>> *Subject:* [R] Recommendation for website to format R code
>>
>> Hi list,
>>
>> Could anyone recommend some good website for formatting R code?  For
>> example, when you copy paste R code to gmail and back to R, it loses its
>> format, the dash symbol causes errors.
>>
>> I've had someone used it to format my code here on the list, but can't find
>> it anymore.
>>
>> Mike
>>
>>     [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list