-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
numericInput() returns 0 instead of NA #3674
Comments
Thanks for the report. Some clarifying questions:
|
Hi, thank you for getting back to me!
EDIT:
|
Wow, confirmed on Windows 10, R 4.2.0. Exactly as you said--without the DT, no issue. And it doesn't happen on macOS R 4.1.2. What in the world?? |
OK, mystery solved. It's an issue in DT that has since been fixed, but not yet released on CRAN. If you |
When using the latest version of R (4.2.0 or 4.2.1, both on Windows 11 or Ubuntu 20.04.4 LTS), the numericInput() returns 0 instead of NA, when no value or a string are entered, if DT::renderDT() is used to render a table.
I also referenced this problem here.
System details
Output of
sessionInfo()
(Windows 11 and Ubuntu 20.04.4 LTS):Ubuntu 20.04.4 LTS:
Windows 11:
Example application
After launching the application delete the input or enter a character.
Describe the problem in detail
When using the latest version of R (4.2.0 or 4.2.1, both on Windows 11 or Ubuntu 20.04.4 LTS), the numericInput() returns 0 instead of NA, when no value or a string are entered, if DT::renderDT() is used to render a table. I tested this for the latest R version (4.2.0 and 4.2.1) and on Ubuntu and Windows (see above). This problem is absent in older R versions (e.g. R version 4.1.2). In a data app, where empty values need to be represented as NA, this is a huge problem.
The text was updated successfully, but these errors were encountered: