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

Passing DataFrame with large integer value in it throws cryptic error #116

Closed
davidanthoff opened this issue May 25, 2016 · 4 comments
Closed

Comments

@davidanthoff
Copy link

Here is the repo:

using DataFrames, RCall

df = DataFrame(x=[2^63 - 1, 2])

R"$df"
@randy3k
Copy link
Member

randy3k commented May 25, 2016

It is expected due to the limitation of integer size, R has a limitation of 2^32-1 2^31-1. It also happens for plain julia integer RObject(2^63 - 1).
For those large integer values, you should convert them to float numbers/float vectors.

@davidanthoff
Copy link
Author

Ah, interesting! Maybe RCall could throw a better error message that points people in the right direction if this happens?

@simonbyrne
Copy link
Member

Maybe we could define our own RConversionException?

@randy3k
Copy link
Member

randy3k commented May 26, 2016

we need to first investigate the time/resources required for checking integer overflow or any other conversion validity.

However, making our own exceptions is not a bad idea.

@palday palday closed this as not planned Won't fix, can't repro, duplicate, stale Jul 16, 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

4 participants