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

error when using dfSummary with shiny #193

Open
vikasrawal opened this issue Nov 14, 2023 · 0 comments
Open

error when using dfSummary with shiny #193

vikasrawal opened this issue Nov 14, 2023 · 0 comments

Comments

@vikasrawal
Copy link

vikasrawal commented Nov 14, 2023

I am trying to use dfSummary in a shiny app, but get the following error with some datasets. It seems the error has something to do with unicode character encoding:

print(dfSummary(dthh),method="render", headings = FALSE, bootstrap.css = FALSE)

The error I get is:

  • Error in gsub("\\\n", "\n", cell) : input string 1 is invalid
    In addition: Warning message:
    In gsub("\\\n", "\n", cell) :
    unable to translate 'Ao de la encuesta' to a wide string

This is a known problem with encoding/rendering of unicode characters. Various people in other fora have suggested either using useBytes=TRUE with gsub to fix this, or changing the locale settings. But neither seems to have any effect.

Would appreciate any help.

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

1 participant