[ESS] crayon package with ESS?

François Michonneau |r@nco|@@m|chonne@u @end|ng |rom gm@||@com
Thu Sep 14 16:13:36 CEST 2017


Hi Kevin,

  Use the GitHub version of the crayon package. It contains a patch to
have the latest versions of Emacs compatible that hasn't been released
on CRAN yet.

  Cheers,
  -- François

On Wed, Sep 13, 2017 at 8:06 PM, Kevin Wright <kw.stat using gmail.com> wrote:
> I found a simple fix:
>
> options(crayon.enabled=TRUE)
>
> After which, the following example works:
> example(green)
>
> Now to see if I can get the colored output from the pillar package...
> https://github.com/hadley/pillar
>
> Sort of works. Negative numbers are red, but place-holder zeros are not
> being shown in gray.
>
> Kevin Wright
>
>
> On Wed, Sep 13, 2017 at 6:50 PM, Kevin Wright <kw.stat using gmail.com> wrote:
>
>>
>> Has anyone successfully used the R package "crayon" for colored text
>> inside Emacs?  The package claims to work with ESS:
>> https://cran.r-project.org/web/packages/crayon/index.html
>>
>> Digging deeper, I find this inside my iESS buffer:
>>
>> crayon::has_color() # returns FALSE
>>
>> Which seems to be caused by this code in the has_color function:
>>
>> isatty(stdout()) # returns FALSE. Why not TRUE?
>>
>> Maybe my inferior terminal settings aren't quite right... Or maybe the
>> problem is with Windows...
>>
>> --
>> Kevin Wright
>>
>
>
>
> --
> Kevin Wright
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help




More information about the ESS-help mailing list