[ESS] Print spark histograms from skimr package in Emacs ESS on Windows

Vitalie Spinu spinuvit at gmail.com
Wed Jan 24 14:54:48 CET 2018



Hi Vinh,

It works for me out of the box, no need for Chinese locale or R specific tricks:

   
   Variable type: numeric 
        variable missing complete   n mean   sd  p0 p25 median p75 p100     hist
    Petal.Length       0      150 150 3.76 1.77 1   1.6   4.35 5.1  6.9 ▇▁▁▂▅▅▃▁
     Petal.Width       0      150 150 1.2  0.76 0.1 0.3   1.3  1.8  2.5 ▇▁▁▅▃▃▂▂
    Sepal.Length       0      150 150 5.84 0.83 4.3 5.1   5.8  6.4  7.9 ▂▇▅▇▆▅▂▂
     Sepal.Width       0      150 150 3.06 0.44 2   2.8   3    3.3  4.4 ▁▂▅▇▃▂▁▁

My bet is that it's your emacs font which doesn't recognize those Unicode
characters.

In my experience DejaVu is among the most complete fonts so I do this in my .emacs:

  (set-face-font 'default  "DejaVu Sans Mono-9.5")

You can see all fonts on your machine with by calling (font-family-list).

HTH,

  Vitalie


>> On Tue, Jan 23 2018 17:35, Vinh Nguyen wrote:

> Hi everyone,

> Was curious if anyone was able to print spark histograms from the
> skimr in the text console of Emacs ESS?  Tried setting to Chinese
> locale, playing around with environment variables, but can't get
> things to print as described here:
> https://github.com/ropenscilabs/skimr/issues/246

> I'm able to print on the regular R console by setting to the Chinese
> locale and using the NSimSun font as described here
> (https://stackoverflow.com/questions/44253848/skimr-cant-seem-to-produce-the-histograms),but no luck on the Emacs ESS side.

> Curious if others have gotten this to work.  Thanks!
> -- Vinh

> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list