Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print spark histograms in Emacs ESS #246

Closed
vinhdizzo opened this issue Jan 11, 2018 · 7 comments
Closed

Print spark histograms in Emacs ESS #246

vinhdizzo opened this issue Jan 11, 2018 · 7 comments

Comments

@vinhdizzo
Copy link

Hi,

Any thoughts on how best to get Emacs ESS to print the spark histograms on Windows? My guess is Sys.setlocale("LC_CTYPE", "Chinese") is still needed. Thank you!

@elinw
Copy link
Collaborator

elinw commented Jan 12, 2018

Did you try it?

@vinhdizzo
Copy link
Author

Yes, I did, but it did not print properly. Curious if anyone got it to work. My guess is the font also needs to be changed in Emacs. I will do some research on how to do this. Will try deja Vu sans when I get the font installed.

@elinw
Copy link
Collaborator

elinw commented Jan 13, 2018

Okay when you get a chance if you can give some screen shots that would be great.

@vinhdizzo
Copy link
Author

Here's my update. I am using the DejaVu Sans font in emacs via the following setting in my init.el file: (set-face-attribute 'default nil :font "DejaVu Sans-12").

This is the display in emacs ESS:
image

This is the display after setting the Chinese locale:
image

Note that I also cannot get the display correct in the regular R windows console (not RStudio). Any thoughts?

@elinw
Copy link
Collaborator

elinw commented Jan 17, 2018

Thanks!
I found an old document here http://dirk.eddelbuettel.com/code/ess/ess-manual.pdf
that says

ESS[R]: now works better when UTF-8 locale is active; in particular, you get
correct directional quotes in R’s startup message for R-devel (unstable development
version of R 2.1.0) when using environment variables LANGUAGE=en@quot
LC ALL=en US.UTF-8

Do you want to try that? I see other people with unanswered questions about this issue. Somehow it must be applying the format() function again.

@vinhdizzo
Copy link
Author

@elinw I had previously responded to your latest response but just realized it never went through. In short, I do have those environment variables set up but no cigar.

@elinw
Copy link
Collaborator

elinw commented Nov 9, 2019

I'm going to close this since no progress in over a year and it is basically a part of the larger issue of UTF-8 on windows.

@elinw elinw closed this as completed Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants