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

UTF-8/odd character handling causes header headaches #188

Open
SimpleAddress4390 opened this issue Jul 31, 2023 · 3 comments
Open

UTF-8/odd character handling causes header headaches #188

SimpleAddress4390 opened this issue Jul 31, 2023 · 3 comments

Comments

@SimpleAddress4390
Copy link

SimpleAddress4390 commented Jul 31, 2023

Hi. Love dfSummary. I am processing large numbers of dataframes where some fields have Hebrew characters. I've been able to isolate an example where the original column text causes the dfSummary headers to become RMarkdown headings.

By using stringr to remove everything but alpha/numeric and punctuation, it works, but that approach of course assumes I know which fields to process before passing to dfSummary.

Is this just a known limitation, or a bug, or ...

I've provided a reproducible example RMD and htm examples of when it fails and when it works.

dfSummary-issue-20230731.zip

thanks for any insight.

@dcomtois
Copy link
Owner

Hello,

I notice you use the method = argument in the dfSummary() call directly; take a closer look at the vignette (https://cran.r-project.org/web/packages/summarytools/vignettes/rmarkdown.html), you'll see that you need to use print(), i.e.:

print( dfSummary(...), method = 'render')

You'll see a big difference in the rendering... Hope this resolves the issue, and sorry for the delay (I suggest you try StackOverflow to get a quicker response)

@SimpleAddress4390
Copy link
Author

SimpleAddress4390 commented Aug 21, 2023 via email

@dcomtois
Copy link
Owner

Ok I'll try and look into it in more details, in the meantime feel free to share new insights here! Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants