-
Notifications
You must be signed in to change notification settings - Fork 196
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
Mixed boolean and numeric values in a column causes read_excel to crash Rstudio but works fine from command line #758
Comments
Are How to provide a readxl reprexWe're in a much better position to address your issue if you can provide a reprex (reproducible example). Provide as much of this as you can:
How to provide your own xls/xlsx file? In order of preference:
|
Hi, I looked into this issue again, and now, the exact same code no longer crashes Rstudio:
Maybe the newly added Anyway, here are the 2 excel files I used on the original post: |
I was having a ton of problems with read_excel crashing my Rstudio session. I googled around, tried the suggested methods of re-saving the excel in different tools, formats, or OS. Nothing worked.
Then, I tried to make a silly test in an Rscript to run it from the command line, to see if I got some additional output, and it simply worked flawlessly without crashing. From there, I found out that the culprit is having a mix of boolean and numeric values in the same column. Opening such excel crashes Rstudio, but works from command line giving a few warnings.
Might this help explain previous issues with these crashes?
Brief description of the problem
Running the "crash" chunk crashes Rstudio and gives this output in command line:
Running the "non-crash" chunk works fine in Rstudio and gives this output in command line:
sessionInfo()
The text was updated successfully, but these errors were encountered: