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

Absolute max for dfSummary? Error when max.distinct.values>220 #197

Closed
SugarRayLua opened this issue Jun 9, 2024 · 1 comment
Closed

Comments

@SugarRayLua
Copy link

Hi, and thanks for making the great summary tools package!

I have a lot of unique text values in a dataset I'm working on and thus tried to set in dfSummary function:

max.distinct.values = 229 (I have 229 rows)

However, when I do so I get the following error in Microsoft R Open version 4.0 on Rgui Windows version:

Error: Rgui.exe: GeometryDoesNotContainImage 'C:pathToATempLocalFile.png' @ warning/attribute.c/GetImageBoundingBox/534

It doesn't give me that error when I set the max.distinct.values at 220

Is this a limitation of dfSummary or something else wrong with my package?

Thanks!

@dcomtois
Copy link
Owner

dcomtois commented Dec 3, 2024

There is no limit in dfSummary's code. However, the GeometryDoesNotContainImage is likely a limitation of ImageMagick, which tries to write an incredibly "tall" image and runs into some brickwall. I was able to get to close to 2000 distinct values and got the same as you did. I would dig in that direction... Try this search for instance

@dcomtois dcomtois closed this as completed Dec 3, 2024
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