-
Notifications
You must be signed in to change notification settings - Fork 606
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
R Code 4.9 histogram fails #168
Comments
This has something to do with your console not having unicode fonts, I think. It's not related to my package specifically, at least. |
I have the same problem as jedijd reported in RStudio with brandnew installations in Windows10. - RStudio is said to support unicode and if I try to "reopen with encoding" the code of 'data.frame': 629 obs. of 5 variables: BW |
Thank you for making your work open source! I am enjoying learning from your book. I have the same issue, also on a new windows 10 machine. |
This problem is part of a long-standing bug in base R. See these issues: 1 2. One workaround is to save the precis output into a variable, remove the histogram, and then print it. Another workaround is to plot the precis output instead of printing. A workaround for |
Thank you very much for your answer!
…On Mon, Nov 11, 2019 at 12:23 PM Fabio A. Correa ***@***.***> wrote:
This problem is part of a long-standing bug in base R. See these issues: 1
<r-lib/evaluate#59> 2
<https://stackoverflow.com/questions/44153072/unicode-with-knitr-and-rmarkdown>.
One workaround is to save the precis output into a variable, remove the
histogram, and then print it. Another workaround is to plot the precis
output instead of printing. A workaround for precis(model) is to
print/plot a coeftab(model).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#168?email_source=notifications&email_token=AA6W57IT5NTPY5S2MD2ZB5TQTF2HDA5CNFSM4HEDAVY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDXE5TI#issuecomment-552488653>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6W57L3XMK77R7DUXO6ZTDQTF2HDANCNFSM4HEDAVYQ>
.
--
Cordialmente,
Antoine
|
I had the same problem. I was going with ap53's suggestion, and the following thread gave me a clue to fix it. I type this line in rstudio source window. Sys.setlocale(locale='Chinese') |
Yes, the chinese thing worked to me XD |
When I run precis(d) (with R 3.5.3 and R Studio Version 1.1.463), the table prints in the console but the histogram does not render in the plot window. Rather, in the console, I get the text output shown below.
histogram
height <U+2581><U+2581><U+2581><U+2581><U+2581><U+2581><U+2581><U+2582><U+2581><U+2587><U+2587><U+2585><U+2581>
weight <U+2581><U+2582><U+2583><U+2582><U+2582><U+2582><U+2582><U+2585><U+2587><U+2587><U+2583><U+2582><U+2581>
age <U+2587><U+2585><U+2585><U+2583><U+2585><U+2582><U+2582><U+2581><U+2581>
male <U+2587><U+2581><U+2581><U+2581><U+2581><U+2581><U+2581><U+2581><U+2581><U+2587>
The text was updated successfully, but these errors were encountered: