You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have Ubuntu 20.04 OS and my system locale is set to et_EE.UTF-8 (which means that in my system thousands are separated by space and decimals by ",").
When I use jsonlite::fromJSON(text) in R for parsing json, all numbers with decimals (77.87, 23.45, etc.) will become integers (77, 23, etc.). The problem is probably trackable down to R_parse function.
When I set my system locale to US-English the jsonlite::fromJSON parses json fine. The problem exists with my particular locale (Estonian).
For all the remaining programs, and my other R code I have had no problems with my system locale. Also, parsing my json with alternative R packages (like jsonify::from_json) works fine, so the issue exists only with jsonlite.
Unfortunately, I depend on jsonlite functionality, so substituting with jsonify library is not not an option. Any help is needed.
The text was updated successfully, but these errors were encountered:
I have Ubuntu 20.04 OS and my system locale is set to et_EE.UTF-8 (which means that in my system thousands are separated by space and decimals by ",").
When I use jsonlite::fromJSON(text) in R for parsing json, all numbers with decimals (77.87, 23.45, etc.) will become integers (77, 23, etc.). The problem is probably trackable down to R_parse function.
When I set my system locale to US-English the jsonlite::fromJSON parses json fine. The problem exists with my particular locale (Estonian).
For all the remaining programs, and my other R code I have had no problems with my system locale. Also, parsing my json with alternative R packages (like jsonify::from_json) works fine, so the issue exists only with jsonlite.
Unfortunately, I depend on jsonlite functionality, so substituting with jsonify library is not not an option. Any help is needed.
The text was updated successfully, but these errors were encountered: