-
Notifications
You must be signed in to change notification settings - Fork 286
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
parse_guess(..., guess_integer = TRUE)
invalid for large integers?
#1407
Comments
What version a re you using? Doesn't seem to be an issue for me (on 2.0.1):
|
I am actually on a more recent version: readr 2.1.2, using R 4.2.0 on macOS. I updated my first post to include the session info. |
I've updated mine to 2.1.2 as well now and it seems to be fine for me. Hopefully someone can fix it. |
Same issue for me on 2.1.2. If this worked fine in 2.0.1, which was released in August 2021, did one of @jimhester's changes late last year inadvertently break this? |
I can reproduce this too: library(readr)
parse_guess("49555598868235", guess_integer = FALSE)
#> [1] 4.95556e+13
parse_guess("49555598868235", guess_integer = TRUE)
#> [1] 266206987
parse_integer("49555598868235")
#> [1] 266206987 Created on 2023-07-31 with reprex v2.0.2 |
Hi,
Thanks for the package. If I want to parse large whole numbers, I cannot get them to get imported as integers if I set
guess_integer = TRUE
:Created on 2022-06-21 by the reprex package (v2.0.1)
Session info
The second result should probably be an
<int64>
? I might not be too familiar with the difference between 32 bit and 64 integers, but the documentation says:So I assumed to get integers as my input is a whole number.
The text was updated successfully, but these errors were encountered: